From mboxrd@z Thu Jan 1 00:00:00 1970 From: ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org (Eric W. Biederman) Subject: Re: [PATCH 11/11] newuidmap, newgidmap: New suid helpers for using subordinate uids and gids Date: Tue, 05 Feb 2013 16:28:27 -0800 Message-ID: <87sj5ai8us.fsf@xmission.com> References: <87d2wxshu0.fsf@xmission.com> <87ehhdpoag.fsf@xmission.com> <20130204183129.GA27179@mail.hallyn.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130204183129.GA27179-7LNsyQBKDXoIagZqoN9o3w@public.gmane.org> (Serge E. Hallyn's message of "Mon, 4 Feb 2013 18:31:29 +0000") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Serge E. Hallyn" Cc: Linux Containers , Pkg-shadow-devel-XbBxUvOt3X2LieD7tvxI8l/i77bcL1HB@public.gmane.org, "Michael Kerrisk (man-pages)" , Nicolas =?utf-8?Q?Fran=C3=A7ois?= List-Id: containers.vger.kernel.org "Serge E. Hallyn" writes: > Note you need the following bit on top of your patch to make newuidmap > and newgidmap link against libselinux. Otherwise selinux-enabled builds > (default in ubuntu) fail. Interesting. I can't imagine what brings in libselinux. But I am in favor of whatever works. Eric > Index: shadow-4.1.5.1/src/Makefile.am > =================================================================== > --- shadow-4.1.5.1.orig/src/Makefile.am 2013-02-04 11:56:40.485335430 -0600 > +++ shadow-4.1.5.1/src/Makefile.am 2013-02-04 11:57:49.525334261 -0600 > @@ -80,6 +80,8 @@ > endif > > chage_LDADD = $(LDADD) $(LIBPAM_SUID) $(LIBAUDIT) $(LIBSELINUX) > +newuidmap_LDADD = $(LDADD) $(LIBSELINUX) > +newgidmap_LDADD = $(LDADD) $(LIBSELINUX) > chfn_LDADD = $(LDADD) $(LIBPAM) $(LIBSELINUX) $(LIBCRYPT_NOPAM) $(LIBSKEY) $(LIBMD) > chgpasswd_LDADD = $(LDADD) $(LIBPAM_SUID) $(LIBSELINUX) $(LIBCRYPT) > chsh_LDADD = $(LDADD) $(LIBPAM) $(LIBSELINUX) $(LIBCRYPT_NOPAM) $(LIBSKEY) $(LIBMD)