Annotation of pkgsrc/sysutils/lsof/patches/patch-aa, revision 1.25
1.25 ! atatat 1: $NetBSD: patch-aa,v 1.24 2004/11/28 22:39:07 atatat Exp $
1.3 agc 2:
1.19 tron 3: If LSOF_MORE_SECURE is non-zero, compile lsof with security, and
1.20 atatat 4: only let unprivileged (non-root) users view their own open files.
5: Set LSOF_LESS_SECURE_SOCKETS to non-zero in order to allow non-root
6: users to see open sockets, even when LSOF_MORE_SECURE is set.
1.19 tron 7:
1.24 atatat 8: --- dialects/n+obsd/machine.h.orig 2004-10-17 17:55:27.000000000 -0400
1.20 atatat 9: +++ dialects/n+obsd/machine.h
1.24 atatat 10: @@ -383,7 +383,9 @@
1.19 tron 11: * (the one that its user logged on with) of the lsof process.
12: */
13:
14: -/* #define HASSECURITY 1 */
15: +#if LSOF_MORE_SECURE
16: +#define HASSECURITY 1
1.20 atatat 17: +#endif
18:
19:
20: /*
1.24 atatat 21: @@ -392,7 +394,9 @@
1.20 atatat 22: * listing is selected by the "-i" option.
23: */
24:
25: -/* #define HASNOSOCKSECURITY 1 */
26: +#if LSOF_LESS_SECURE_SOCKETS
27: +#define HASNOSOCKSECURITY 1
1.19 tron 28: +#endif
1.15 kim 29:
1.12 wiz 30:
1.19 tron 31: /*
CVSweb <webmaster@jp.NetBSD.org>