Re: [2.6 patch] remove securebits

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morgan
Date: Wednesday, August 29, 2007 - 5:51 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Serge E. Hallyn wrote:


I agree. I'll try to code it up in a way that its clear how to delete
this functionality when folk realize they no longer need it...

- -static inline int get_file_caps(struct linux_binprm *bprm)
+int cap_bprm_set_security(struct linux_binprm *bprm)
 {
 	bprm_clear_caps(bprm);
+	bprm_force_uid0_caps(bprm);
+	current->keep_capabilities = 0;


I'll look at it again, but I had thought I had preserved the previous
behavior with this condensed version of the code. Are you suggesting an
improvement to what was there, or pointing out I'm inadvertently
breaking the old behavior?

Thanks

Andrew
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG1hSu+bHCR3gb8jsRAhHJAJ9Pn8w2InrhbNjBjpqT9NEE0HX61QCgkBR8
Bo1xJcZGqbsr+IhQ+DDyENA=
=PKx4
-----END PGP SIGNATURE-----
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] remove securebits, Adrian Bunk, (Fri Aug 24, 2:06 pm)
Re: [2.6 patch] remove securebits, Serge E. Hallyn, (Fri Aug 24, 2:19 pm)
Re: [2.6 patch] remove securebits, Andrew Morgan, (Fri Aug 24, 8:50 pm)
Re: [2.6 patch] remove securebits, Adrian Bunk, (Sat Aug 25, 11:28 am)
Re: [2.6 patch] remove securebits, Serge E. Hallyn, (Mon Aug 27, 8:09 am)
Re: [2.6 patch] remove securebits, Adrian Bunk, (Mon Aug 27, 8:17 am)
Re: [2.6 patch] remove securebits, Serge E. Hallyn, (Mon Aug 27, 8:28 am)
Re: [2.6 patch] remove securebits, Adrian Bunk, (Mon Aug 27, 8:58 am)
Re: [2.6 patch] remove securebits, Andrew Morgan, (Tue Aug 28, 12:20 am)
Re: [2.6 patch] remove securebits, Serge E. Hallyn, (Tue Aug 28, 7:38 am)
Re: [2.6 patch] remove securebits, Serge E. Hallyn, (Tue Aug 28, 11:19 am)
Re: [2.6 patch] remove securebits, Andrew Morgan, (Wed Aug 29, 5:51 pm)
Re: [2.6 patch] remove securebits, Serge E. Hallyn, (Thu Aug 30, 6:26 am)