هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.
ماذا يفعل
Booleans turn parts of the policy on or off without writing rules: httpd_enable_homedirs, httpd_can_network_connect_db, samba_export_all_rw … setsebool NAME on changes it now; add -P to keep it after reboot. semanage boolean -l shows descriptions.
طريقة الكتابة
getsebool -a | BOOLEAN...
setsebool [-PNV] BOOLEAN on|off|1|0 | BOOL1=VAL1 …الخيارات 4
الأكثر استخدامًا
setsebool
لا يوجد شيء يطابق هذا الفلتر.
أمثلة 10
$ مستخدم عادي# بصلاحية root (أو مع sudo)
1All web booleans
getsebool -a | grep httpdon/off per boolean.
2One boolean
getsebool httpd_enable_homedirs httpd_enable_homedirs --> offOff by default.
3Switch on permanently
setsebool -P httpd_enable_homedirs onSurvives a reboot.
4Only until reboot
setsebool httpd_can_network_connect onFor a quick test.
5Several at once
setsebool -P httpd_can_network_connect_db=1 httpd_can_sendmail=1Name=value pairs.
6Descriptions
What the boolean allows.
7Only your changes
semanage boolean -l -CBooleans that differ from the default.
8Find a boolean from the man page
Needs selinux-policy-doc.
9NFS home folders
setsebool -P use_nfs_home_dirs onUsers with NFS homes can log in.
10Audit risky booleans (security)
getsebool -a | grep -E 'httpd_execmem|httpd_unified|allow_execstack|selinuxuser_execstack'Booleans that weaken protection should stay off unless needed.
لا يوجد شيء يطابق هذا الفلتر.
رموز الخروج
0 :: Done. 1 :: Error (unknown boolean, not allowed).