Changeset 2159


Ignore:
Timestamp:
Mar 26, 2012, 1:58:38 PM (13 years ago)
Author:
ezyang
Message:
s/AUTH/AUTHPRIV/ and report cwd too.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/common/oursrc/fuse-better-mousetrapfs/better-mousetrapfs

    r2158 r2159  
    6868        status = dict(tuple(v.strip() for v in l.split(':', 1))
    6969                      for l in open('/proc/%d/status' % pid).readlines())
     70        cwd = os.readlink('/proc/%d/cwd' % pid)
    7071
    7172        syslog.syslog(
    72             syslog.LOG_WARNING | syslog.LOG_AUTH,
    73             'mousetrap caught process %d, uid=%s, gid=%s, exe=%r, cmdline=%r' %
    74             (pid, user, group, exe, cmdline))
     73            syslog.LOG_WARNING | 80, # 80 = LOG_AUTHPRIV
     74            'mousetrap caught process %d, uid=%s, gid=%s, exe=%r, cmdline=%r, cwd=%r' %
     75            (pid, user, group, exe, cmdline, cwd))
    7576
    7677        try:
Note: See TracChangeset for help on using the changeset viewer.