pkgsrc/sysutils/lsof/patches/patch-aa
agc 5687d4b75c Add a mk.conf variable LSOF_MORE_SECURE, which, if set to 1, will
mean that non-privileged users can only view their own open files.

Fixes PR 12741, from Anne Bennett (anne@alcor.concordia.ca)
2001-04-30 14:37:23 +00:00

18 lines
472 B
Text

$NetBSD: patch-aa,v 1.17 2001/04/30 14:37:24 agc Exp $
If LSOF_MORE_SECURE is non-zero, compile lsof with security, and
only let unprivileged (non-root) users view their own open files
--- dialects/n+obsd/machine.h 2001/04/30 09:23:38 1.1
+++ dialects/n+obsd/machine.h 2001/04/30 10:06:24
@@ -373,7 +373,9 @@
* (the one that its user logged on with) of the lsof process.
*/
-/* #define HASSECURITY 1 */
+#if LSOF_MORE_SECURE
+#define HASSECURITY 1
+#endif
/*