Annotation of pkgsrc/sysutils/lsof/patches/patch-aa, revision 1.27
1.27 ! christos 1: $NetBSD: patch-aa,v 1.26 2007/08/14 19:59:18 veego 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.27 ! christos 8: --- dialects/n+obsd/machine.h.orig 2006-03-28 16:54:17.000000000 -0500
! 9: +++ dialects/n+obsd/machine.h 2008-05-17 18:53:29.000000000 -0400
! 10: @@ -41,6 +41,10 @@
! 11:
! 12: #include <sys/types.h>
! 13: #include <sys/param.h>
! 14: +#include <stdbool.h>
! 15: +#if __NetBSD_Version__ >= 499006200
! 16: +#define HASCWDINFO
! 17: +#endif
! 18:
! 19:
! 20: /*
! 21: @@ -410,7 +414,9 @@
1.19 tron 22: * (the one that its user logged on with) of the lsof process.
23: */
24:
25: -/* #define HASSECURITY 1 */
26: +#if LSOF_MORE_SECURE
27: +#define HASSECURITY 1
1.20 atatat 28: +#endif
29:
30:
31: /*
1.27 ! christos 32: @@ -419,7 +425,9 @@
1.20 atatat 33: * listing is selected by the "-i" option.
34: */
35:
36: -/* #define HASNOSOCKSECURITY 1 */
37: +#if LSOF_LESS_SECURE_SOCKETS
38: +#define HASNOSOCKSECURITY 1
1.19 tron 39: +#endif
1.15 kim 40:
1.12 wiz 41:
1.19 tron 42: /*
CVSweb <webmaster@jp.NetBSD.org>