Systemd/src/shared
Lennart Poettering 5b12334d35 bus: add new sd_bus_creds object to encapsulate process credentials
This way we can unify handling of credentials that are attached to
messages, or can be queried for bus name owners or connection peers.

This also adds the ability to extend incomplete credential information
with data from /proc,

Also, provide a convenience call that will automatically determine the
most appropriate credential object for an incoming message, by using the
the attached information if possible, the sending name information if
available and otherwise the peer's credentials.
2013-11-28 18:42:18 +01:00
..
linux execute: support syscall filtering using seccomp filters 2012-07-17 04:17:53 +02:00
.gitignore build-sys: move more files from core/ to share/ that are generic enough 2013-11-22 16:31:40 +01:00
acl-util.c journald: DO recalculate the ACL mask, but only if it doesn't exist 2013-05-30 00:43:39 -04:00
acl-util.h journald: DO recalculate the ACL mask, but only if it doesn't exist 2013-05-30 00:43:39 -04:00
acpi-fpdt.c acpi-fpdt: break on zero or negative length read 2013-11-07 01:23:54 -05:00
acpi-fpdt.h support acpi firmware performance data (FPDT) 2013-09-24 15:43:41 +02:00
apparmor-util.c security: rework selinux, smack, ima, apparmor detection logic 2013-10-10 16:35:44 +02:00
apparmor-util.h security: rework selinux, smack, ima, apparmor detection logic 2013-10-10 16:35:44 +02:00
ask-password-api.c build-sys: use -Og instead of -O0 to catch warnings 2013-10-21 15:46:00 +02:00
ask-password-api.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
audit.c bus: add new sd_bus_creds object to encapsulate process credentials 2013-11-28 18:42:18 +01:00
audit.h use #pragma once instead of foo*foo define guards 2013-11-18 20:28:54 -05:00
boot-timestamps.c support acpi firmware performance data (FPDT) 2013-09-24 15:43:41 +02:00
boot-timestamps.h support acpi firmware performance data (FPDT) 2013-09-24 15:43:41 +02:00
bus-errors.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
calendarspec.c calendar: support 'yearly' and 'annually' names the same way as cron 2013-11-20 19:36:14 +01:00
calendarspec.h timer: implement calendar time events 2012-11-23 21:37:58 +01:00
capability.c util: rename write_one_line_file() to write_string_file() 2013-04-03 20:12:56 +02:00
capability.h use #pragma once instead of foo*foo define guards 2013-11-18 20:28:54 -05:00
cgroup-show.c Fix bad assert in show_pid_array 2013-10-14 19:16:25 -04:00
cgroup-show.h use #pragma once instead of foo*foo define guards 2013-11-18 20:28:54 -05:00
cgroup-util.c Remove dead code and unexport some calls 2013-11-08 18:12:45 +01:00
cgroup-util.h Remove dead code and unexport some calls 2013-11-08 18:12:45 +01:00
conf-files.c util: when we use path_strv_canonicalize() we must allocate the strv from the heap 2013-10-30 18:15:38 +01:00
conf-files.h use #pragma once instead of foo*foo define guards 2013-11-18 20:28:54 -05:00
conf-parser.c conf-parser: distinguish between multiple sections with the same name 2013-11-25 19:35:44 +01:00
conf-parser.h conf-parser: fix memory realloc error 2013-11-25 23:39:11 +01:00
def.h localed: match converted keymaps before legacy 2013-11-18 20:35:52 -05:00
dev-setup.c dev-setup: do not create a dangling /proc/kcore symlink 2013-06-10 08:50:59 -04:00
dev-setup.h dev-setup: allow a path prefix for use in chroots 2012-08-21 17:19:35 +02:00
device-nodes.c shared: device-nodes - add include guard 2013-09-24 15:34:57 +02:00
device-nodes.h shared: device-nodes - add include guard 2013-09-24 15:34:57 +02:00
efivars.c Modernization 2013-10-13 17:56:54 -04:00
efivars.h support acpi firmware performance data (FPDT) 2013-09-24 15:43:41 +02:00
env-util.c strv: don't access potentially NULL string arrays 2013-10-02 19:45:12 +02:00
env-util.h Add __attribute__((const, pure, format)) in various places 2013-05-02 22:52:09 -04:00
errno-list.c bus: rework sd_bus_error APIs 2013-11-22 04:23:22 +01:00
errno-list.h bus: rework sd_bus_error APIs 2013-11-22 04:23:22 +01:00
exit-status.c service: add options RestartPreventExitStatus and SuccessExitStatus 2012-08-14 14:46:03 +02:00
exit-status.h Add __attribute__((const, pure, format)) in various places 2013-05-02 22:52:09 -04:00
fdset.c shared: move fdset.c from core/ to shared/ since it is used by more than the core now 2012-12-23 11:28:14 +01:00
fdset.h util: allow trailing semicolons on define_trivial_cleanup_func lines 2013-10-14 06:11:19 +02:00
fileio-label.c util: rename write_one_line_file() to write_string_file() 2013-04-03 20:12:56 +02:00
fileio-label.h util: rename write_one_line_file() to write_string_file() 2013-04-03 20:12:56 +02:00
fileio.c Never call qsort on potentially NULL arrays 2013-10-13 17:56:54 -04:00
fileio.h Advertise hibernation only if there's enough free swap 2013-09-13 19:41:52 -04:00
gunicode.c unicode: treat cute symbol block as fullwidth 2013-10-13 17:56:54 -04:00
gunicode.h util, utf8: make ellipsize take multi-byte characters into account 2013-10-13 17:56:54 -04:00
hashmap.c hashmap: be a bit more conservative with pre-allocating hash tables and items 2013-11-20 19:37:02 +01:00
hashmap.h hashmap: size hashmap bucket array dynamically 2013-10-01 00:17:21 +02:00
hwclock.c hwclock: modernizations 2013-11-20 19:36:14 +01:00
hwclock.h use #pragma once instead of foo*foo define guards 2013-11-18 20:28:54 -05:00
ima-util.c security: missing header inclusions 2013-10-10 21:22:59 +02:00
ima-util.h security: rework selinux, smack, ima, apparmor detection logic 2013-10-10 16:35:44 +02:00
initreq.h build-sys: move more files from core/ to share/ that are generic enough 2013-11-22 16:31:40 +01:00
install-printf.c specifier: rework specifier calls to return proper error message 2013-09-17 10:06:50 -05:00
install-printf.h specifier: rework specifier calls to return proper error message 2013-09-17 10:06:50 -05:00
install.c conf-parser: distinguish between multiple sections with the same name 2013-11-25 19:35:44 +01:00
install.h core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
ioprio.h
label.c Remove duplicate includes 2013-11-18 20:28:55 -05:00
label.h udev: add SECLABEL{selinux}= support 2013-10-09 17:31:41 +02:00
list.h list: make our list macros a bit easier to use by not requring type spec on each invocation 2013-10-14 06:11:19 +02:00
log.c core: synchronously block when logging 2013-07-24 12:34:28 +02:00
log.h log: Fix previous commit to use correct level 2013-10-20 16:02:26 -04:00
logs-show.c logs-show.c: show all messages for a slice 2013-10-01 00:02:08 +02:00
logs-show.h systemctl: show hint about --full when lines don't fit 2013-08-11 18:10:34 -04:00
macro.h swap: split state machine state ACTIVATING into two 2013-11-25 17:40:53 +01:00
Makefile
missing.h logind: introduce session-devices 2013-09-17 17:15:30 -05:00
mkdir-label.c shared: split mkdir_*() and mkdir_*_label() from each other 2013-07-26 04:13:55 +02:00
mkdir.c mkdir: pass a proper function pointer to mkdir_safe_internal 2013-10-02 19:45:12 +02:00
mkdir.h mkdir: modernize header ifdefs 2013-11-06 23:03:12 +01:00
MurmurHash3.c MurmurHash3: actually inline functions 2013-04-14 13:11:06 -04:00
MurmurHash3.h kdbus: generare bloom filters properly for messages we send 2013-04-14 17:49:18 +02:00
net-util.c conf-parser: distinguish between multiple sections with the same name 2013-11-25 19:35:44 +01:00
net-util.h conf-parser: distinguish between multiple sections with the same name 2013-11-25 19:35:44 +01:00
output-mode.h logs-show: add short-precise mode with us timestamps 2013-08-20 21:18:43 -04:00
pager.c polkit: don't spawn local client if we access a remote system 2013-11-07 21:06:44 +01:00
pager.h Add __attribute__((const, pure, format)) in various places 2013-05-02 22:52:09 -04:00
path-lookup.c move _cleanup_ attribute in front of the type 2013-04-18 09:11:22 +02:00
path-lookup.h path_lookup: moved _cleanup_lookup_paths_free_ from install.c to path-lookup.h 2013-10-27 11:51:22 -04:00
path-util.c path-util: paths_check_timestamp() opimizations 2013-11-06 17:34:54 +01:00
path-util.h udev: move udev_rules_check_timestamp to shared 2013-10-26 14:34:31 +02:00
prioq.c core: convert PID 1 to libsystemd-bus 2013-11-20 20:52:36 +01:00
prioq.h bus: add minimal event loop API 2013-10-10 04:44:48 +02:00
ptyfwd.c machinectl: add new command to spawn a getty inside a container 2013-10-31 01:43:38 +01:00
ptyfwd.h nspawn: split out pty forwaring logic into ptyfwd.c 2013-10-31 01:43:38 +01:00
ratelimit.c ratelimit: fix off-by-one 2013-02-13 08:45:13 -05:00
ratelimit.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
refcnt.h bus: make bus ref counting atomic 2013-05-16 21:58:34 +02:00
replace-var.c Verify validity of session name when received from outside 2013-09-16 09:58:37 -05:00
replace-var.h shared: add API for replacing @FOO@ style variables in strings 2012-11-14 22:21:16 +01:00
securebits.h build-sys: move more files from core/ to share/ that are generic enough 2013-11-22 16:31:40 +01:00
selinux-util.c security: rework selinux, smack, ima, apparmor detection logic 2013-10-10 16:35:44 +02:00
selinux-util.h selinux: rework selinux access check logic 2012-10-02 17:07:00 -04:00
set.c core: serialize/deserialize bus subscribers 2013-07-10 23:41:03 +02:00
set.h util: allow trailing semicolons on define_trivial_cleanup_func lines 2013-10-14 06:11:19 +02:00
sleep-config.c Make hibernation test work for swap files 2013-11-07 01:23:55 -05:00
sleep-config.h systemd-sleep: add support for freeze and standby 2013-05-06 22:51:57 +02:00
smack-util.c smack: minimize ifdef use, and move all labeling to smack-util.c 2013-10-11 10:16:41 +02:00
smack-util.h smack: minimize ifdef use, and move all labeling to smack-util.c 2013-10-11 10:16:41 +02:00
socket-label.c active: rework make_socket_fd() to be based on socket_address_listen() 2013-11-06 23:03:12 +01:00
socket-util.c socket: rework things to have only one sockaddr formatter 2013-11-07 00:13:58 +01:00
socket-util.h socket: rework things to have only one sockaddr formatter 2013-11-07 00:13:58 +01:00
sparse-endian.h shared: move sparse-endian.h from journal 2012-10-22 18:08:48 +02:00
spawn-ask-password-agent.c
spawn-ask-password-agent.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
spawn-polkit-agent.c build-sys: make PolicyKit support compile-time optional (was runtime-optional already) 2013-02-13 23:08:25 +01:00
spawn-polkit-agent.h use #pragma once instead of foo*foo define guards 2013-11-18 20:28:54 -05:00
special.h build-sys: move more files from core/ to share/ that are generic enough 2013-11-22 16:31:40 +01:00
specifier.c specifier: rework specifier calls to return proper error message 2013-09-17 10:06:50 -05:00
specifier.h specifier: rework specifier calls to return proper error message 2013-09-17 10:06:50 -05:00
strbuf.c Fix spelling errors using 'codespell' tool 2013-04-15 08:40:05 -04:00
strbuf.h use the same email address everywhere 2012-11-12 19:47:43 +01:00
strv.c local: fix memory leak when putting together locale settings 2013-10-01 00:17:21 +02:00
strv.h machined: port over to libsystemd-bus 2013-10-30 02:08:57 +01:00
strxcpyx.c udev: move string copy functions to shared/ 2013-01-09 19:06:46 +01:00
strxcpyx.h macro: clean up usage of gcc attributes 2013-10-16 06:14:59 +02:00
syscall-list.c build-sys: move more files from core/ to share/ that are generic enough 2013-11-22 16:31:40 +01:00
syscall-list.h build-sys: move more files from core/ to share/ that are generic enough 2013-11-22 16:31:40 +01:00
test-tables.h test-tables: allow sparse tables and check mapping for -1 2013-07-16 12:04:31 -04:00
time-dst.c time-dst: use _cleanup_ 2013-05-02 22:55:38 -04:00
time-dst.h timedatectl: properly print 30 minutes DST transitions 2012-11-11 16:55:25 +01:00
time-util.c timer: consider (usec_t) -1 an invalid timestamp 2013-11-11 15:54:42 +01:00
time-util.h timer: consider (usec_t) -1 an invalid timestamp 2013-11-11 15:54:42 +01:00
udev-util.h util: allow trailing semicolons on define_trivial_cleanup_func lines 2013-10-14 06:11:19 +02:00
unit-name.c bus: add API calls to escape string components of objects paths 2013-11-21 01:03:26 +01:00
unit-name.h logind: port over to use scopes+slices for all cgroup stuff 2013-07-02 01:48:55 +02:00
utf8.c utf8: export utf8 validation functions as part of sd-bus 2013-11-07 03:07:40 +01:00
utf8.h utf8: ascii_filter() is unused, let's remove it 2013-11-07 03:06:37 +01:00
util.c bus: add new sd_bus_creds object to encapsulate process credentials 2013-11-28 18:42:18 +01:00
util.h service: add the ability for units to join other unit's PrivateNetwork= and PrivateTmp= namespaces 2013-11-27 20:28:48 +01:00
utmp-wtmp.c Add __attribute__((const, pure, format)) in various places 2013-05-02 22:52:09 -04:00
utmp-wtmp.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
virt.c virt: move caching of virtualization check results into detect_vm() and detect_container() 2013-10-31 16:24:14 +01:00
virt.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00
watchdog.c util: make time formatting a bit smarter 2013-04-04 02:56:56 +02:00
watchdog.h use #pragma once instead of foo*foo #define guards 2012-07-19 12:30:59 +02:00