skip to main | skip to sidebar

惡龍的家

2015年7月1日 星期三

Enable/Disable SELinux by command

SELinux 可以使用setenforce 0/1來切換mode.
<Permissive mode>
$setenforce 0
<Enforcing mode>
$setenforce 1


SELinux 可以使用getenforce 0/1讀取mode.
Ex:
shell@hollyds:/ # getenforce
getenforce
Enforcing
張貼者: 輝哲 於 凌晨1:16
標籤: Command, Linux

沒有留言:

張貼留言

較新的文章 較舊的文章 首頁
訂閱: 張貼留言 (Atom)

網誌存檔

  • ►  2019 (1)
    • ►  5月 (1)
  • ►  2018 (15)
    • ►  9月 (1)
    • ►  5月 (1)
    • ►  4月 (5)
    • ►  3月 (1)
    • ►  2月 (7)
  • ►  2017 (17)
    • ►  12月 (4)
    • ►  11月 (1)
    • ►  9月 (1)
    • ►  8月 (2)
    • ►  7月 (2)
    • ►  6月 (1)
    • ►  5月 (2)
    • ►  3月 (1)
    • ►  2月 (2)
    • ►  1月 (1)
  • ►  2016 (18)
    • ►  6月 (1)
    • ►  5月 (4)
    • ►  4月 (4)
    • ►  3月 (5)
    • ►  1月 (4)
  • ▼  2015 (48)
    • ►  12月 (8)
    • ►  11月 (9)
    • ►  10月 (5)
    • ►  9月 (1)
    • ►  8月 (4)
    • ▼  7月 (10)
      • Read an image file into bitmap and set it to the i...
      • 在 ActionBar顯示進度圖示
      • Send message by handler
      • Bluetooth
      • Boot time
      • Install Java JDK on Ubuntu
      • Installing Android Studio behind Proxy on Ubuntu
      • System server blocked and killed by WatchDag
      • Static broadcast receiver in the stopped applicati...
      • Enable/Disable SELinux by command
    • ►  6月 (11)

關於我自己

輝哲
檢視我的完整簡介