From 5600c405d5f1b12cad94915014e7cb46bf8fb746 Mon Sep 17 00:00:00 2001 From: Andy Lutomirski Date: Mon, 14 Jan 2013 07:58:57 -0800 Subject: setpriv: run a program with different Linux privilege settings This new command can set no_new_privs, uid, gid, groups, securebits, inheritable caps, the cap bounding set, securebits, and selinux and apparmor labels. [kerolasa@iki.fi: a lot of small adjustment making the command to be good fit to util-linux project] Signed-off-by: Sami Kerola Signed-off-by: Andy Lutomirski --- sys-utils/Makemodule.am | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys-utils/Makemodule.am') diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am index 978d97f7d..86c529eae 100644 --- a/sys-utils/Makemodule.am +++ b/sys-utils/Makemodule.am @@ -318,3 +318,10 @@ if HAVE_AUDIT hwclock_LDADD += -laudit endif endif # BUILD_HWCLOCK + +if BUILD_SETPRIV +usrbin_exec_PROGRAMS += setpriv +dist_man_MANS += sys-utils/setpriv.1 +setpriv_SOURCES = sys-utils/setpriv.c +setpriv_LDADD = $(LDADD) -lcap-ng libcommon.la +endif -- cgit v1.2.3-55-g7522