0
点赞
收藏
分享

微信扫一扫

数电实验-----实现74LS153芯片扩展为8选1数据选择器以及应用(Quartus II )

萧让听雪 2023-11-21 阅读 22

原文链接:麒麟KYSEC使用方法02-开启及关闭exectl
hello,大家好啊,今天给大家带来麒麟KYLINOS的kysec使用方法系列文章第二篇内容----使用命令开启及关闭exectl,可执行程序策略有三种模式,off/enforing/warning,今天给大家介绍一下使用命令关闭可执行程序策略的文章,强制和警告大家可以以此类推,欢迎大家点个赞并点个在看。关注我吧!
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、查看可执行程序的策略

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:~#

image.png

3、在页面查看可执行程序的策略
image.png

4、临时关闭可执行程序的策略

root@pdsyw-pc:~# setstatus -f exectl off
root@pdsyw-pc:~#
root@pdsyw-pc:~# getstatus
KySec status: enabled

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

image.png

5、在页面查看策略情况
image.png

6、重启系统

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

image.png

7、重启后策略恢复
image.png

8、永久关闭可执行程序的策略

root@pdsyw-pc:~# setstatus -f exectl off -p
root@pdsyw-pc:~#
root@pdsyw-pc:~# getstatus
KySec status: enabled

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

image.png

9、页面查看策略情况
image.png

10、重启

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

image.png

11、重启后策略没有恢复
image.png

举报

相关推荐

0 条评论