麒麟KYSEC使用方法04-开启及关闭fpro

275 篇文章 4 订阅
275 篇文章 6 订阅

原文链接:麒麟KYSEC使用方法04-开启及关闭fpro
hello,大家好啊,今天给大家带来麒麟KYLINOS的kysec使用方法系列文章第四篇内容----使用命令开启及关闭fpro,文件保护策略有两种模式,off/on,今天给大家介绍一下使用命令关闭文件保护策略的文章,开启策略以及内核模块保护策略、进程保护策略、设备安全策略、ipt策略大家可以以此类推,欢迎大家点个赞并点个在看。关注我吧!

1、查看系统信息

pdsyw@pdsyw-pc:~/桌面$ sudo -i
root@pdsyw-pc:~# 
root@pdsyw-pc:~# cat /etc/.kyinfo 
[dist]
name=Kylin
milestone=Desktop-V10-SP1-General-Release-2303
arch=arm64
beta=False
time=2023-04-27 15:46:53
dist_id=Kylin-Desktop-V10-SP1-General-Release-2303-arm64-2023-04-27 15:46:53

[servicekey]
key=0516013

[os]
to=
term=2024-08-01

root@pdsyw-pc:~# uname -a
Linux pdsyw-pc 5.4.18-85-generic #74-KYLINOS SMP Fri Mar 24 11:20:19 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
root@pdsyw-pc:~# 

image.png

2、查看当前应用防护控制策略的情况
image.png

3、临时关闭文件保护策略

root@pdsyw-pc:~# getstatus
KySec status: enabled

exec control: warning
net control : warning
file protect: on
kmod protect: on
three admin : off
process protect: on
device control: on
ipt control : on
root@pdsyw-pc:~# setstatus -f fpro  off
root@pdsyw-pc:~# getstatus
KySec status: enabled

exec control: warning
net control : warning
file protect: off
kmod protect: on
three admin : off
process protect: on
device control: on
ipt control : on
root@pdsyw-pc:~# 

image.png

4、临时关闭后的策略情况
image.png

5、重启系统

root@pdsyw-pc:~# 
root@pdsyw-pc:~# 
root@pdsyw-pc:~# reboot

image.png

6、重启后应用防护控制策略恢复
image.png

7、永久关闭文件保护策略

root@pdsyw-pc:~# getstatus 
KySec status: enabled

exec control: warning
net control : warning
file protect: on
kmod protect: on
three admin : off
process protect: on
device control: on
ipt control : on
root@pdsyw-pc:~# setstatus -f fpro off -p
root@pdsyw-pc:~# getstatus 
KySec status: enabled

exec control: warning
net control : warning
file protect: off
kmod protect: on
three admin : off
process protect: on
device control: on
ipt control : on
root@pdsyw-pc:~# 

image.png

8、关闭后的策略情况
image.png

9、重启系统

root@pdsyw-pc:~# 
root@pdsyw-pc:~# 
root@pdsyw-pc:~# reboot

image.png

10、重启后文件保护策略没有恢复
image.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

鹏大圣运维

编写不易,还请支持

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值