Projects
Browse Source     Search     Timeline     Wiki

Changeset 23329

Show
Ignore:
Timestamp:
08/06/07 08:24:48 (16 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5385870> 9A510: SystemStarter: shouldn't require user write bit on startup items

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/launchd/src/StartupItems.c

    r23079 r23329  
    230230                r = false; 
    231231        } 
    232         if ((aStatBuf.st_mode & ALLPERMS) & ~(S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)) { 
    233                 syslog(LOG_WARNING, "\"%s\" failed security check: permissions", aPath); 
     232        if (aStatBuf.st_mode & S_IWOTH) { 
     233                syslog(LOG_WARNING, "\"%s\" failed security check: world writable", aPath); 
     234                r = false; 
     235        } 
     236        if (aStatBuf.st_mode & S_IWGRP) { 
     237                syslog(LOG_WARNING, "\"%s\" failed security check: group writable", aPath); 
    234238                r = false; 
    235239        }