SELinux--找不到seinfo、sesearch指令
今天在學習SELinux時,想查詢policy規則,於是在Command輸入:
[root@oel62 ~]# seinfo
-bash: seinfo: command not found
[root@oel62 ~]# sesearch
-bash: seinfo: command not found
找不到相關指令,是因為缺少安裝SELinux Tools,利用yum來安裝
[root@oel62 ~]# yum install setools-console.x86_64
Loaded plugins: refresh-packagekit, security
Setting up Install Process
...(略)
Running Transaction
Installing : setools-libs-3.3.7-4.el6.x86_64 1/2
Installing : setools-console-3.3.7-4.el6.x86_64 2/2
Installed:
setools-console.x86_64 0:3.3.7-4.el6
一共安裝了兩個套件,接著輸入指令試試看。
[root@oel62 ~]# seinfo --help
Usage: seinfo [OPTIONS] [EXPRESSION] [POLICY ...]
Print information about the components of a SELinux policy.
EXPRESSIONS:
-c[NAME], --class[=NAME] print object classes
--sensitivity[=NAME] print sensitivities
...(略)
[root@oel62 ~]# sesearch --help
Usage: sesearch [OPTIONS] RULE_TYPE [RULE_TYPE ...] [EXPESSION] [POLICY ...]
Search the rules in a SELinux policy.
RULE_TYPES:
-A, --allow allow rules
--neverallow neverallow rules
...(略)
-
Windows7 / Windows8 kill process Linux下要刪除某個程序通常會使用 ps 配合 kill 來刪除程序。 例如:ps -ef |grep [PROCESS NAME] kill -9 [PID] 在Windows下,通常是...
-
利用Win 10的工作排程器來設定每日自動執行的批次檔,單獨執行批次檔沒問題,但是放在排程上就是無法執行。 後來試了幾種網路上提供的方式,其注意的事項如下: 1、在「安全性選項」選擇「只有使用者登入時才執行」並取消「以最高權限執行」。 2、在「設定」中選擇「Win...
-
因為寫程式時剛好用到sin、cos等數學函數,但是傳入值都是徑度(單位圓上角度所對的弧長為該角度的徑度), 而不是角度,所以找到了換算的方法,順道也記錄下來。 已知 pi=3.1415 已知 圓周長=半徑*2*pi 已知 一個圓有360度 所以 1徑度=半徑...