pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/mtools Fix from PR/18771: mtools privileges



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5e7fed728c01
branches:  trunk
changeset: 464511:5e7fed728c01
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Dec 11 17:14:22 2003 +0000

description:
Fix from PR/18771: mtools privileges

diffstat:

 sysutils/mtools/distinfo         |   3 ++-
 sysutils/mtools/patches/patch-ae |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r d316e8a6ad15 -r 5e7fed728c01 sysutils/mtools/distinfo
--- a/sysutils/mtools/distinfo  Thu Dec 11 17:11:18 2003 +0000
+++ b/sysutils/mtools/distinfo  Thu Dec 11 17:14:22 2003 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2003/12/11 16:05:40 adam Exp $
+$NetBSD: distinfo,v 1.6 2003/12/11 17:14:22 adam Exp $
 
 SHA1 (mtools-3.9.9.tar.bz2) = 91198d52fa405eff1ac9eec57cadcc86d06b6ef1
 Size (mtools-3.9.9.tar.bz2) = 262148 bytes
@@ -6,4 +6,5 @@
 SHA1 (patch-ab) = 29ccd93cc6f2a2cf0020e91cbeaeac9d5e1a0fe4
 SHA1 (patch-ac) = 84d959c35ec65679e003f50ef6a6fb2e62ff272e
 SHA1 (patch-ad) = 891ed493888708d9fb835d9249852555938a84a0
+SHA1 (patch-ae) = 5281829c8c79f95ff4672fabb53acd22685c17bb
 SHA1 (patch-af) = 0e2e1037be4da5f7c876cb5c9f54950e4726f6d0
diff -r d316e8a6ad15 -r 5e7fed728c01 sysutils/mtools/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/mtools/patches/patch-ae  Thu Dec 11 17:14:22 2003 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ae,v 1.3 2003/12/11 17:14:22 adam Exp $
+
+--- privileges.c.orig  2003-12-11 18:07:44.000000000 +0000
++++ privileges.c
+@@ -68,7 +68,7 @@ void reclaim_privs(void)
+ {
+       if(noPrivileges)
+               return;
+-      setgid(egid);
++      setegid(egid);
+       Setuid(euid);
+       print_privs("after reclaim privs, both uids should be 0 ");
+ }
+@@ -76,7 +76,7 @@ void reclaim_privs(void)
+ void drop_privs(void)
+ {
+       Setuid(ruid);
+-      setgid(rgid);
++      setegid(rgid);
+       print_privs("after drop_privs, real should be 0, effective should not ");
+ }
+ 



Home | Main Index | Thread Index | Old Index