diff options
author | Michal Sekletar <msekleta@redhat.com> | 2015-09-01 16:02:58 +0200 |
---|---|---|
committer | Michal Sekletar <msekleta@redhat.com> | 2015-09-01 17:09:56 +0200 |
commit | 24154879845c6aa68a82d3a606f037e9df7527e0 (patch) | |
tree | 0812a444a258cbc63adbf6e83452918611987358 /src/core/hostname-setup.c | |
parent | 3f010fe095a8070299d35f0f9d386672e0cb2af0 (diff) |
selinux: always use *_raw API from libselinux
When mcstransd* is running non-raw functions will return translated SELinux
context. Problem is that libselinux will cache this information and in the
future it will return same context even though mcstransd maybe not running at
that time. If you then check with such context against SELinux policy then
selinux_check_access may fail depending on whether mcstransd is running or not.
To workaround this problem/bug in libselinux, we should always get raw context
instead. Most users will not notice because result of access check is logged
only in debug mode.
* SELinux context translation service, which will translates labels to human
readable form
Diffstat (limited to 'src/core/hostname-setup.c')
0 files changed, 0 insertions, 0 deletions