]> git.ipfire.org Git - thirdparty/systemd.git/commit
selinux: rework selinux access check logic
authorLennart Poettering <lennart@poettering.net>
Tue, 2 Oct 2012 21:07:00 +0000 (17:07 -0400)
committerLennart Poettering <lennart@poettering.net>
Tue, 2 Oct 2012 21:07:00 +0000 (17:07 -0400)
commitcad45ba11ec3572296361f53f5852ffb97a97fa3
tree42c8e2f855d26efb8819b535dc6e86846de811a9
parent71ef24d09573874c0f7bc323c07c3aec2a458707
selinux: rework selinux access check logic

a) Instead of parsing the bus messages inside of selinux-access.c
simply pass everything pre-parsed in the functions

b) implement the access checking with a macro that resolves to nothing
on non-selinux builds

c) split out the selinux checks into their own sources
selinux-util.[ch]

d) this unifies the job creation code behind the D-Bus calls
Manager.StartUnit() and Unit.Start().
24 files changed:
Makefile.am
src/core/dbus-automount.c
src/core/dbus-device.c
src/core/dbus-job.c
src/core/dbus-manager.c
src/core/dbus-mount.c
src/core/dbus-path.c
src/core/dbus-service.c
src/core/dbus-snapshot.c
src/core/dbus-socket.c
src/core/dbus-swap.c
src/core/dbus-target.c
src/core/dbus-timer.c
src/core/dbus-unit.c
src/core/dbus-unit.h
src/core/selinux-access.c
src/core/selinux-access.h
src/core/selinux-setup.c
src/shared/dbus-common.c
src/shared/dbus-common.h
src/shared/label.c
src/shared/selinux-util.c [new file with mode: 0644]
src/shared/selinux-util.h [new file with mode: 0644]
src/systemctl/systemctl.c