Skip to content

Commit f54f464

Browse files
committed
(PUP-11081) Allow access to user keychains from macOS daemon
By default, launchd plists do not provide access to user keychains (i.e. having the daemon run `security list-keychains` as a different user will not list the user's keychains). There isn't really any reason why we shouldn't allow this in the puppet plist especially since having `puppet agent -t` run the same command works, it's just runs from the daemon that are affected. Apple documentation for `SessionCreate` states the following: > SessionCreate <boolean> > This key specifies that the job should be spawned into a new security > audit session rather than the default session for the context is belongs > to. See auditon(2) for details. Relevant SO answer: https://stackoverflow.com/a/9482707/1074558
1 parent 2fde3e6 commit f54f464

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/osx/puppet.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@
2626
<string>/var/log/puppetlabs/puppet/puppet.log</string>
2727
<key>StandardOutPath</key>
2828
<string>/var/log/puppetlabs/puppet/puppet.log</string>
29+
<key>SessionCreate</key>
30+
<true />
2931
</dict>
3032
</plist>

0 commit comments

Comments
 (0)