• 麒麟KYSEC使用方法02-开启及关闭exectl


    原文链接:麒麟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:~# 
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21

    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:~# 
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12

    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:~# 
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14

    image.png

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

    6、重启系统

    root@pdsyw-pc:~# 
    root@pdsyw-pc:~# 
    root@pdsyw-pc:~# reboot
    
    • 1
    • 2
    • 3

    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:~# 
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14

    image.png

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

    10、重启

    root@pdsyw-pc:~# 
    root@pdsyw-pc:~# 
    root@pdsyw-pc:~# reboot
    
    • 1
    • 2
    • 3

    image.png

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

  • 相关阅读:
    Git 小白入门到进阶—(基本概念和常用命令)
    Hostlink通讯协议解析【串行 C-Mode和Fins】
    win10下mmsegmentation的安装训练以及使用mmdeploy部署的全过程
    Qt源码解析11-QLineEdit与QValidator关系源码解析
    new Vue的时候到底做了什么
    安装k8s集群
    无代码开发添加数据入门教程
    (Hexagon_V65_Programmers_Reference_Manual(13)
    C# 使用AForge调用摄像头
    TS装饰器bindThis优雅实现React类组件中this绑定
  • 原文地址:https://blog.csdn.net/m0_69493559/article/details/134530141