Projects
Browse Source     Search     Timeline     Wiki

Changeset 23288

Show
Ignore:
Timestamp:
07/02/07 09:29:12 (17 months ago)
Author:
zarzycki@…
Message:

<rdar://problem/5284661> Per-user agents run in root security context

Location:
trunk/launchd/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/launchd/src/Makefile.am

    r23279 r23288  
    4141 
    4242launchctl_CFLAGS = $(AM_CFLAGS) -I/System/Library/Frameworks/System.framework/PrivateHeaders 
    43 launchctl_LDFLAGS = -framework CoreFoundation -framework IOKit -weak_library /usr/lib/libedit.dylib 
     43launchctl_LDFLAGS = -framework CoreFoundation -framework IOKit -framework Security -weak_library /usr/lib/libedit.dylib 
    4444 
    4545SystemStarter_CFLAGS = -mdynamic-no-pic $(AM_CFLAGS) 
  • trunk/launchd/src/Makefile.in

    r23279 r23288  
    247247@LIBS_ONLY_FALSE@sysconf_DATA = hostconfig rc.common rc.netboot 
    248248@LIBS_ONLY_FALSE@launchctl_CFLAGS = $(AM_CFLAGS) -I/System/Library/Frameworks/System.framework/PrivateHeaders 
    249 @LIBS_ONLY_FALSE@launchctl_LDFLAGS = -framework CoreFoundation -framework IOKit -weak_library /usr/lib/libedit.dylib 
     249@LIBS_ONLY_FALSE@launchctl_LDFLAGS = -framework CoreFoundation -framework IOKit -framework Security -weak_library /usr/lib/libedit.dylib 
    250250@LIBS_ONLY_FALSE@SystemStarter_CFLAGS = -mdynamic-no-pic $(AM_CFLAGS) 
    251251@LIBS_ONLY_FALSE@SystemStarter_LDFLAGS = -framework CoreFoundation -framework IOKit 
  • trunk/launchd/src/launchctl.c

    r23286 r23288  
    2323#include <CoreFoundation/CoreFoundation.h> 
    2424#include <CoreFoundation/CFPriv.h> 
     25#include <Security/Security.h> 
     26#include <Security/AuthSession.h> 
    2527#include <IOKit/IOKitLib.h> 
    2628#include <NSSystemDirectories.h> 
     
    15541556                } 
    15551557 
     1558                if (strcasecmp(session_type, "Background") == 0) { 
     1559                        assumes(SessionCreate(sessionKeepCurrentBootstrap, 0) == 0); 
     1560                } 
     1561 
    15561562                assumes(load_and_unload_cmd(the_argc, load_launchd_items) == 0); 
    15571563        }