summaryrefslogtreecommitdiffstats
path: root/login-utils/selinux_utils.c
Commit message (Collapse)AuthorAgeFilesLines
* chfn: chsh: use selinux_check_passwd_access()Karel Zak2016-06-141-26/+4Star
| | | | | | | | | | | * selinux/av_permissions.h and magic constants are deprecated, the recommended solution is to use string_to_security_class() and string_to_av_perm() to get access vector * it also seems that selinux_check_passwd_access() does exactly the same as our checkAccess(), let's use it. Signed-off-by: Karel Zak <kzak@redhat.com>
* selinux_utils: fix coding styleSami Kerola2011-11-291-47/+44Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* chrt: [selinux] fix compiler warnings [-Wsign-compare]Karel Zak2011-08-011-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* selinux: is_selinux_enabled() returns 0, 1 and -1Karel Zak2008-07-011-1/+1
| | | | | | | | | | Unfortunately, the current libselinux implementation of is_selinux_enabled() returns -1 on error. This behavior is undocumented. The proper solution is to use "if (is_selinux_enabled() > 0)". Signed-off-by: Karel Zak <kzak@redhat.com>
* chfn: fix compiler warnings in selinux stuffKarel Zak2008-03-201-1/+1
| | | | | | selinux_utils.c:16: warning: assignment discards qualifiers from pointer target type Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.13-pre1 tarball.Karel Zak2006-12-071-2/+1Star
|
* Imported from util-linux-2.12a tarball.Karel Zak2006-12-071-0/+55