summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authoratatat <atatat>2003-11-22 23:30:03 +0000
committeratatat <atatat>2003-11-22 23:30:03 +0000
commit8e957139646c16517bf16100b8704b56d4a3b53e (patch)
treef458fe531cbcb4ca30c391d4a8bbad712ca562ae /sysutils
parent75bb6820bc8e4378f314688aa5c007b2c4b4adbc (diff)
downloadpkgsrc-8e957139646c16517bf16100b8704b56d4a3b53e.tar.gz
Bring back patch-aa -- it's for pkgsrc, not a bugfix.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/lsof/distinfo3
-rw-r--r--sysutils/lsof/patches/patch-aa31
2 files changed, 33 insertions, 1 deletions
diff --git a/sysutils/lsof/distinfo b/sysutils/lsof/distinfo
index 4de179a0e69..0ebf469ba88 100644
--- a/sysutils/lsof/distinfo
+++ b/sysutils/lsof/distinfo
@@ -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 --git a/sysutils/lsof/patches/patch-aa b/sysutils/lsof/patches/patch-aa
new file mode 100644
index 00000000000..2b5ebec017d
--- /dev/null
+++ b/sysutils/lsof/patches/patch-aa
@@ -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
+
+
+ /*