diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-06-16 15:58:07 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-06-16 15:58:07 -0700 |
commit | f793b62438a3cfdbcc5ba453eebee1db3f315bea (patch) | |
tree | c0c8cf38a5c5293bfc05af20ab797e2496137158 /login/Makefile | |
parent | fab8238de69de67637d21923b3ec1c26e4ce8450 (diff) | |
download | glibc-f793b62438a3cfdbcc5ba453eebee1db3f315bea.tar.gz glibc-f793b62438a3cfdbcc5ba453eebee1db3f315bea.tar.xz glibc-f793b62438a3cfdbcc5ba453eebee1db3f315bea.zip |
Extend pt_chown to drop privileges.
If libcap is available, use it to drop privileges in pt_chown before starting the work to change the permissions and ownership of the slave device.
Diffstat (limited to 'login/Makefile')
-rw-r--r-- | login/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/login/Makefile b/login/Makefile index b02d385b66..427c050a89 100644 --- a/login/Makefile +++ b/login/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1996-1998,2000-2002,2003,2007 Free Software Foundation, Inc. +# Copyright (C) 1996-1998,2000-2003,2007, 2009 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -54,6 +54,11 @@ otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \ $(resolvobjdir)/libresolv.a $(common-objpfx)libc.a endif +ifeq (yes,$(have-libcap)) +libcap = -lcap +endif +LDLIBS-pt_chown = $(libcap) + # pt_chown needs to be setuid root. $(inst_libexecdir)/pt_chown: $(objpfx)pt_chown $(+force) $(make-target-directory) |