Annotation of pkgsrc/sysutils/lsof/patches/patch-aa, revision 1.26

1.26    ! veego       1: $NetBSD: patch-aa,v 1.25 2005/01/17 14:54:01 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.26    ! veego       8: --- dialects/n+obsd/machine.h.orig     2006-03-28 23:54:17.000000000 +0200
        !             9: +++ dialects/n+obsd/machine.h  2007-08-11 18:01:56.000000000 +0200
        !            10: @@ -410,7 +410,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.26    ! veego      21: @@ -419,7 +421,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>