Dima Kuznetsov has posted comments on this change.
Change subject: caps: Add selinux enforcement reporting. ......................................................................
Patch Set 4:
(1 comment)
http://gerrit.ovirt.org/#/c/26951/4/vdsm/caps.py File vdsm/caps.py:
Line 391: Line 392: Line 393: def _getSELinux(): Line 394: selinux = dict() Line 395: selinux['mode'] = str(utils.getSELinuxEnforceMode())
right. let us conform.
I don't really have a strong opinion here.
The numeric values are documented by SELinux, and are good enough for them (as available at /sys/fs/selinux/enforce), also.
On the other hand, on restapi I do report the more human friendly format of enforcing/permissive/disabled strings. Line 396: Line 397: return selinux Line 398: Line 399: