Systemd/src/basic
Lennart Poettering 6355e75610 selinux: split up mac_selinux_have() from mac_selinux_use()
Let's distuingish the cases where our code takes an active role in
selinux management, or just passively reports whatever selinux
properties are set.

mac_selinux_have() now checks whether selinux is around for the passive
stuff, and mac_selinux_use() for the active stuff. The latter checks the
former, plus also checks UID == 0, under the assumption that only when
we run priviliged selinux management really makes sense.

Fixes: #1941
2015-11-27 20:28:13 +01:00
..
linux
.gitignore
Makefile
MurmurHash2.c
MurmurHash2.h
af-list.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
af-list.h
alloc-util.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
alloc-util.h util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
arphrd-list.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
arphrd-list.h
async.c tree-wide: make macros for converting fds to pointers and back generic and use them everywhere 2015-11-17 00:52:10 +01:00
async.h
audit-util.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
audit-util.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
barrier.c util-lib: split out fd-related operations into fd-util.[ch] 2015-10-25 13:19:18 +01:00
barrier.h
bitmap.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
bitmap.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
blkid-util.h
btrfs-ctree.h
btrfs-util.c Merge pull request #1915 from poettering/btrfs-root-subvol 2015-11-16 15:48:21 +01:00
btrfs-util.h tmpfiles: create subvolumes for "v", "q", and "Q" only if / is a subvolume 2015-11-16 15:25:42 +01:00
build.h
bus-label.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
bus-label.h
calendarspec.c calendarspec: sub-second support, v3 2015-11-17 23:52:09 +02:00
calendarspec.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
cap-list.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
cap-list.h
capability-util.c treewide: apply errno.cocci 2015-11-09 20:01:06 +01:00
capability-util.h src/basic: rename audit.[ch] → audit-util.[ch] and capability.[ch] → capability-util.[ch] 2015-10-27 13:25:57 +01:00
cgroup-util.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
cgroup-util.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
chattr-util.c util-lib: split out file attribute calls to chattr-util.[ch] 2015-10-27 13:25:56 +01:00
chattr-util.h util-lib: split out file attribute calls to chattr-util.[ch] 2015-10-27 13:25:56 +01:00
clock-util.c util-lib: split out fd-related operations into fd-util.[ch] 2015-10-25 13:19:18 +01:00
clock-util.h util-lib: split out fd-related operations into fd-util.[ch] 2015-10-25 13:19:18 +01:00
conf-files.c util-lib: introduce dirent-util.[ch] for directory entry calls 2015-10-27 13:25:56 +01:00
conf-files.h nspawn: add new .nspawn files for container settings 2015-09-06 01:49:06 +02:00
copy.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
copy.h tree-wide: never use the off_t unless glibc makes us use it 2015-09-10 18:16:18 +02:00
cpu-set-util.c util-lib: move character class definitions to string-util.h 2015-11-03 17:45:11 +01:00
cpu-set-util.h basic: split out cpu set specific APIs into cpu-set-util.[ch] 2015-09-30 22:26:16 +02:00
def.h defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
device-nodes.c
device-nodes.h util-lib: move fstab_node_to_udev_node() to fstab-util.[ch] 2015-10-27 13:25:55 +01:00
dirent-util.c util-lib: introduce dirent-util.[ch] for directory entry calls 2015-10-27 13:25:56 +01:00
dirent-util.h util-lib: introduce dirent-util.[ch] for directory entry calls 2015-10-27 13:25:56 +01:00
env-util.c execute: Add new PassEnvironment= directive 2015-11-11 07:55:23 -08:00
env-util.h execute: Add new PassEnvironment= directive 2015-11-11 07:55:23 -08:00
errno-list.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
errno-list.h
escape.c escape: add cescape_length() call as generalization of cescape() 2015-11-23 21:31:29 +01:00
escape.h escape: add cescape_length() call as generalization of cescape() 2015-11-23 21:31:29 +01:00
ether-addr-util.c util-lib: move ether_addr_to_string() into ether-addr-util.c 2015-10-26 01:24:39 +01:00
ether-addr-util.h util-lib: move ether_addr_to_string() into ether-addr-util.c 2015-10-26 01:24:39 +01:00
exit-status.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
exit-status.h
extract-word.c core: fix dependency parsing 2015-11-11 22:53:05 +01:00
extract-word.h core: fix dependency parsing 2015-11-11 22:53:05 +01:00
fd-util.c util-lib: move fdname_is_valid() to fd-util.[ch] 2015-10-27 14:57:44 +01:00
fd-util.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
fdset.c tree-wide: make macros for converting fds to pointers and back generic and use them everywhere 2015-11-17 00:52:10 +01:00
fdset.h core: constify a few things 2015-10-31 19:09:20 +01:00
fileio-label.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
fileio-label.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
fileio.c util-lib: optionally, when writing a string to a file, verify string on failure 2015-11-13 13:02:49 +01:00
fileio.h util-lib: optionally, when writing a string to a file, verify string on failure 2015-11-13 13:02:49 +01:00
formats-util.h util-lib: move formats-util.h from shared/ to basic/ 2015-10-25 13:19:18 +01:00
fs-util.c install: follow unit file symlinks in /usr, but not /etc when looking for [Install] data 2015-11-12 17:57:04 +01:00
fs-util.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
glob-util.c util-lib: move character class definitions to string-util.h 2015-11-03 17:45:11 +01:00
glob-util.h util-lib: move character class definitions to string-util.h 2015-11-03 17:45:11 +01:00
gunicode.c
gunicode.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
hashmap.c siphash24: let siphash24_finalize() and siphash24() return the result directly 2015-11-16 23:17:52 +01:00
hashmap.h hashmap: refactor hash_func 2015-10-05 18:22:10 +02:00
hexdecoct.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
hexdecoct.h util-lib: split out hex/dec/oct encoding/decoding into its own file 2015-10-27 13:25:55 +01:00
hostname-util.c hostname-util: fix code comment 2015-11-17 15:06:01 +01:00
hostname-util.h util: make machine_name_is_valid() a macro and move it to hostname-util.h 2015-08-24 22:46:45 +02:00
in-addr-util.c resolved: fix typo in in_addr_is_localhost() 2015-11-27 08:36:37 +02:00
in-addr-util.h resolved: never cache RRs originating from localhost 2015-11-27 00:46:51 +01:00
io-util.c util-lib: split out IO related calls to io-util.[ch] 2015-10-26 01:24:38 +01:00
io-util.h io-util.h: move iovec stuff from macro.h to io-util.h 2015-10-27 13:25:57 +01:00
ioprio.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
json.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
json.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
label.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
label.h
list.h basic: add LIST_INSERT_BEFORE 2015-08-04 03:23:43 -07:00
locale-util.c util-lib: move more locale-related calls to locale-util.[ch] 2015-10-27 13:25:56 +01:00
locale-util.h util-lib: move more locale-related calls to locale-util.[ch] 2015-10-27 13:25:56 +01:00
lockfile-util.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
lockfile-util.h
log.c log: whitespace style fix 2015-11-05 13:44:03 +01:00
log.h util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
login-util.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
login-util.h util: move logind_running() to login-util.[ch] 2015-10-24 23:30:40 +02:00
macro.h util-lib: move CONF_DIRS_NULSTR definition to def.h 2015-11-03 17:45:11 +01:00
memfd-util.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
memfd-util.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
mempool.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
mempool.h
missing.h sd-netlink: add support for RTA_PREF 2015-11-11 15:42:38 +01:00
mkdir-label.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
mkdir.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
mkdir.h
mount-util.c automount: move generically userful call repeat_mount() into mount-util.[ch] 2015-10-27 14:25:58 +01:00
mount-util.h automount: move generically userful call repeat_mount() into mount-util.[ch] 2015-10-27 14:25:58 +01:00
nss-util.h util-lib: move nss-util.h from shared/ to basic/ 2015-11-27 19:23:29 +01:00
ordered-set.h util-lib: add ordered_set_ensure_allocated() 2015-11-25 21:58:38 +01:00
parse-util.c calendarspec: sub-second support, v3 2015-11-17 23:52:09 +02:00
parse-util.h calendarspec: sub-second support, v3 2015-11-17 23:52:09 +02:00
path-util.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
path-util.h util-lib: split stat()/statfs()/stavfs() related calls into stat-util.[ch] 2015-10-27 13:25:56 +01:00
prioq.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
prioq.h
proc-cmdline.c Merge pull request #1744 from evverx/fix-debug-generator 2015-11-03 13:04:06 +01:00
proc-cmdline.h proc-cmdline: add runlevel to target mapping 2015-11-03 14:09:03 +03:00
process-util.c process-util: move a couple of process-related calls over 2015-10-27 14:24:58 +01:00
process-util.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
random-util.c util-lib: split out IO related calls to io-util.[ch] 2015-10-26 01:24:38 +01:00
random-util.h
ratelimit.c
ratelimit.h
refcnt.h basic: document that people shouldn't use refcnt.h without reason 2015-08-26 21:04:38 +02:00
replace-var.c util-lib: move character class definitions to string-util.h 2015-11-03 17:45:11 +01:00
replace-var.h
rlimit-util.c util-lib: move string table stuff into its own string-table.[ch] 2015-10-27 13:25:56 +01:00
rlimit-util.h util-lib: split out resource limits related calls into rlimit-util.[ch] 2015-10-27 13:25:56 +01:00
rm-rf.c util-lib: split stat()/statfs()/stavfs() related calls into stat-util.[ch] 2015-10-27 13:25:56 +01:00
rm-rf.h
securebits.h
selinux-util.c selinux: split up mac_selinux_have() from mac_selinux_use() 2015-11-27 20:28:13 +01:00
selinux-util.h selinux: split up mac_selinux_have() from mac_selinux_use() 2015-11-27 20:28:13 +01:00
set.h util-lib: add ordered_set_ensure_allocated() 2015-11-25 21:58:38 +01:00
sigbus.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
sigbus.h
signal-util.c util-lib: move string table stuff into its own string-table.[ch] 2015-10-27 13:25:56 +01:00
signal-util.h util-lib: split string parsing related calls from util.[ch] into parse-util.[ch] 2015-10-27 13:25:55 +01:00
siphash24.c siphash: minor coding style fixes and modernizations 2015-11-17 01:08:44 +01:00
siphash24.h siphash: minor coding style fixes and modernizations 2015-11-17 01:08:44 +01:00
smack-util.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
smack-util.h smack: label /etc/passwd and friends as '_' smack label when --with-smack-run-label' is enabled 2015-10-07 16:37:25 +09:00
socket-label.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
socket-util.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
socket-util.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
sparse-endian.h
special.h core: unified cgroup hierarchy support 2015-09-01 23:52:27 +02:00
stat-util.c util-lib: split stat()/statfs()/stavfs() related calls into stat-util.[ch] 2015-10-27 13:25:56 +01:00
stat-util.h basic: fix build on architectures with small long 2015-11-24 06:49:10 +01:00
stdio-util.h util-lib: split out printf() helpers to stdio-util.h 2015-10-27 13:25:57 +01:00
strbuf.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
strbuf.h
string-table.c util-lib: move string table stuff into its own string-table.[ch] 2015-10-27 13:25:56 +01:00
string-table.h util-lib: move string table stuff into its own string-table.[ch] 2015-10-27 13:25:56 +01:00
string-util.c util-lib: move character class definitions to string-util.h 2015-11-03 17:45:11 +01:00
string-util.h util-lib: move character class definitions to string-util.h 2015-11-03 17:45:11 +01:00
strv.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
strv.h util: split out extract_first_word() and related calls into extract-word.[ch] 2015-10-24 23:03:49 +02:00
strxcpyx.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
strxcpyx.h
syslog-util.c util-lib: split out syslog-related calls into syslog-util.[ch] 2015-10-27 13:25:57 +01:00
syslog-util.h util-lib: split out syslog-related calls into syslog-util.[ch] 2015-10-27 13:25:57 +01:00
terminal-util.c doc: correct punctuation and improve typography in documentation 2015-11-06 13:00:02 +01:00
terminal-util.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
time-util.c calendarspec: sub-second support, v3 2015-11-17 23:52:09 +02:00
time-util.h time-util: add parse_time(), which is like parse_sec() but allows specification of default time unit if none is specified 2015-11-10 17:31:31 +01:00
umask-util.h util-lib: split out umask-related code to umask-util.h 2015-10-27 13:25:56 +01:00
unaligned.h basic: add unaligned macros for little endian 2015-11-16 15:13:33 +01:00
unit-name.c core: remove support for RequiresOverridable= and RequisiteOverridable= 2015-11-12 19:27:24 +01:00
unit-name.h core: remove support for RequiresOverridable= and RequisiteOverridable= 2015-11-12 19:27:24 +01:00
user-util.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
user-util.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
utf8.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
utf8.h Revert "utf8.[ch]: use char32_t and char16_t instead of int, int32_t, int16_t" 2015-11-02 11:21:25 +01:00
util.c tree-wide: use right cast macros for UIDs, GIDs and PIDs 2015-11-17 00:52:10 +01:00
util.h util-lib: move character class definitions to string-util.h 2015-11-03 17:45:11 +01:00
verbs.c util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
verbs.h
virt.c virt: add comment about order in virtualization detection 2015-11-23 19:15:25 +01:00
virt.h detect-virt: add rkt app container runtime 2015-11-09 16:40:35 +01:00
web-util.c util-lib: move web-related calls into web-util.[ch] 2015-10-27 13:25:57 +01:00
web-util.h util-lib: move web-related calls into web-util.[ch] 2015-10-27 13:25:57 +01:00
xattr-util.c util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
xattr-util.h util-lib: split xattr-related calls into xattr-util.[ch] 2015-10-27 13:25:56 +01:00
xml.c util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
xml.h