[Rpm-maint] [rpm-software-management/rpm] selinux: use string_to_security_class() instead of class ID (#146)

Davide Cavalca notifications at github.com
Thu Feb 2 20:52:18 UTC 2017


SELinux recommends to use string_to_security_class() instead of referencing
class IDs directly. This also fixes a build issue for systems that don't
include flask.h by default.

References:
https://selinuxproject.org/page/NB_Imp_SELinux-aware_Apps#Implementing_SELinux-aware_Applications_2
https://github.com/SELinuxProject/selinux/commit/76913d8adb61b5afe28fd3b4ce91feab29e284dd
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/146

-- Commit Summary --

  * selinux: use string_to_security_class() instead of class ID

-- File Changes --

    M plugins/selinux.c (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/146.patch
https://github.com/rpm-software-management/rpm/pull/146.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/146
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170202/edf6c6f3/attachment.html>


More information about the Rpm-maint mailing list