Add systemd unit file for mcstrans daemon
This commit is contained in:
parent
534f5a74bb
commit
28d63799d0
|
@ -17,6 +17,7 @@ endif
|
|||
PREFIX ?= $(DESTDIR)/usr
|
||||
SBINDIR ?= $(DESTDIR)/sbin
|
||||
INITDIR ?= $(DESTDIR)/etc/rc.d/init.d
|
||||
SYSTEMDDIR ?= $(DESTDIR)/usr/lib/systemd
|
||||
|
||||
PROG_SRC=mcstrans.c mcscolor.c mcstransd.c mls_level.c
|
||||
PROG_OBJS= $(patsubst %.c,%.o,$(PROG_SRC))
|
||||
|
@ -38,6 +39,8 @@ install: all
|
|||
install -m 755 $(PROG) $(SBINDIR)
|
||||
test -d $(INITDIR) || install -m 755 -d $(INITDIR)
|
||||
install -m 755 $(INITSCRIPT).init $(INITDIR)/$(INITSCRIPT)
|
||||
test -d $(SYSTEMDDIR)/system || install -m 755 -d $(SYSTEMDDIR)/system
|
||||
install -m 644 mcstrans.service $(SYSTEMDDIR)/system/
|
||||
|
||||
clean:
|
||||
-rm -f $(OBJS) $(LOBJS) $(TARGET) $(PROG) $(PROG_OBJS) *~ \#*
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Translates SELinux MCS/MLS labels to human readable form
|
||||
ConditionSecurity=selinux
|
||||
|
||||
[Service]
|
||||
ExecStart=/sbin/mcstransd -f
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue