Annotation of pkgsrc/sysutils/lsof/patches/patch-aa, revision 1.23
1.23 ! atatat 1: $NetBSD: patch-aa,v 1.20 2002/12/22 20:04:31 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.20 atatat 8: --- dialects/n+obsd/machine.h.orig Tue Dec 3 13:23:54 2002
9: +++ dialects/n+obsd/machine.h
10: @@ -371,7 +371,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: /*
21: @@ -380,7 +382,9 @@
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>