pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/lsof Bring back patch-aa -- it's for pkgsrc, ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9c7710b16bf3
branches:  trunk
changeset: 463647:9c7710b16bf3
user:      atatat <atatat%pkgsrc.org@localhost>
date:      Sat Nov 22 23:30:03 2003 +0000

description:
Bring back patch-aa -- it's for pkgsrc, not a bugfix.

diffstat:

 sysutils/lsof/distinfo         |   3 ++-
 sysutils/lsof/patches/patch-aa |  31 +++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r d8ceabc4c58b -r 9c7710b16bf3 sysutils/lsof/distinfo
--- a/sysutils/lsof/distinfo    Sat Nov 22 23:19:47 2003 +0000
+++ b/sysutils/lsof/distinfo    Sat Nov 22 23:30:03 2003 +0000
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.33 2003/11/22 23:19:47 christos Exp $
+$NetBSD: distinfo,v 1.34 2003/11/22 23:30:03 atatat Exp $
 
 SHA1 (lsof_4.69.tar.gz) = 2ed1fc88e5508dfc38dc0a70559b6e8ee78a0bae
 Size (lsof_4.69.tar.gz) = 969757 bytes
+SHA1 (patch-aa) = 36790019394b4088c226222d4aefaec50430bcf3
diff -r d8ceabc4c58b -r 9c7710b16bf3 sysutils/lsof/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/lsof/patches/patch-aa    Sat Nov 22 23:30:03 2003 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-aa,v 1.23 2003/11/22 23:30:03 atatat Exp $
+
+If LSOF_MORE_SECURE is non-zero, compile lsof with security, and
+only let unprivileged (non-root) users view their own open files.
+Set LSOF_LESS_SECURE_SOCKETS to non-zero in order to allow non-root
+users to see open sockets, even when LSOF_MORE_SECURE is set.
+
+--- dialects/n+obsd/machine.h.orig     Tue Dec  3 13:23:54 2002
++++ dialects/n+obsd/machine.h
+@@ -371,7 +371,9 @@
+  * (the one that its user logged on with) of the lsof process.
+  */
+ 
+-/* #define    HASSECURITY     1 */
++#if LSOF_MORE_SECURE
++#define       HASSECURITY     1
++#endif
+ 
+ 
+ /*
+@@ -380,7 +382,9 @@
+  * listing is selected by the "-i" option.
+  */
+ 
+-/* #define    HASNOSOCKSECURITY       1       */
++#if LSOF_LESS_SECURE_SOCKETS
++#define       HASNOSOCKSECURITY       1
++#endif
+ 
+ 
+ /*



Home | Main Index | Thread Index | Old Index