Commit Graph
186889 Commits
Author SHA1 Message Date
Stanislas a53358e8a9 solargraph: 0.32.1 -> 0.34.2 (#64246) 2019-07-03 20:38:42 +00:00
Jamey Sharp de251704d6 nixos/nscd: run with a dynamic user
nscd doesn't create any files outside of /run/nscd unless the nscd.conf
"persistent" option is used, which we don't do by default. Therefore it
doesn't matter what UID/GID we run this service as, so long as it isn't
shared with any other running processes.

/run/nscd does need to be owned by the same UID that the service is
running as, but systemd takes care of that for us thanks to the
RuntimeDirectory directive.

If someone wants to turn on the "persistent" option, they need to
manually configure users.users.nscd and systemd.tmpfiles.rules so that
/var/db/nscd is owned by the same user that nscd runs as.

In an all-defaults boot.isContainer configuration of NixOS, this removes
the only user which did not have a pre-assigned UID.
2019-07-03 13:27:29 -07:00
Daiderd Jordan 42705e70a7 lldb: fix darwin sandboxed build 2019-07-03 22:20:25 +02:00
Daiderd Jordan a17c03cb7b python-watchdog: remove cf-private 2019-07-03 22:20:25 +02:00
Daiderd Jordan 3a57f5095f tk: remove cf-private 2019-07-03 22:20:25 +02:00
Daiderd Jordan b74a025f7f glib: remove cf-private 2019-07-03 22:20:24 +02:00
Daiderd Jordan ea4f282128 watchexec: remove cf-private 2019-07-03 22:20:24 +02:00
Daiderd Jordan 5ecbcc0886 mdbook: remove cf-private 2019-07-03 22:20:24 +02:00
Daiderd Jordan 4e7695fc69 darwin.trash: remove cf-private 2019-07-03 22:20:23 +02:00
Daiderd Jordan df23db8956 jack2: remove cf-private 2019-07-03 22:20:23 +02:00
Daiderd Jordan da7bcec42f root: remove cf-private 2019-07-03 22:20:22 +02:00
Daiderd Jordan 56127c23c2 gargoyle: remove cf-private 2019-07-03 22:20:22 +02:00
Daiderd Jordan bbf5f7e3da zola: remove cf-private 2019-07-03 22:20:22 +02:00
Daiderd Jordan b0e201f349 vim: remove cf-private 2019-07-03 22:20:21 +02:00
Daiderd Jordan 1fc3bbcb06 aminal: remove cf-private 2019-07-03 22:20:21 +02:00
Daiderd Jordan 29e68d765b synergy: fix darwin build 2019-07-03 22:20:20 +02:00
Daiderd Jordan a73bfdf3a7 kitty: remove cf-private 2019-07-03 22:20:20 +02:00
Daiderd Jordan bea56ef8ba gimp: remove cf-private 2019-07-03 22:20:20 +02:00
Daiderd Jordan f2d2381838 emacs: remove cf-private 2019-07-03 22:20:19 +02:00
Daiderd Jordan 35b7c60c0c xorg-xorgserver: remove cf-private 2019-07-03 22:20:19 +02:00
Daiderd Jordan 40d34bb19f xquartz: remove cf-private 2019-07-03 22:20:18 +02:00
Daiderd Jordan c558a74a1b wxmac: fix build 2019-07-03 22:20:18 +02:00
Daiderd Jordan 28f6abd7b3 vtk: remove cf-private 2019-07-03 22:20:18 +02:00
Daiderd Jordan 72f2e6dc7b sfml: remove cf-private 2019-07-03 22:20:17 +02:00
Daiderd Jordan ee85cef108 SDL: remove cf-private 2019-07-03 22:20:17 +02:00
Daiderd Jordan cbfbe9ca1e qt: remove cf-private 2019-07-03 22:20:16 +02:00
Daiderd Jordan 0fb071fd00 pcl: remove cf-private 2019-07-03 22:20:16 +02:00
Daiderd Jordan 2f9a546b96 opencv: remove cf-private 2019-07-03 22:20:15 +02:00
Daiderd Jordan ecf667b34a libui: remove cf-private 2019-07-03 22:20:15 +02:00
Daiderd Jordan c585330a21 glfw: remove cf-private 2019-07-03 22:20:15 +02:00
Daiderd Jordan 91b595945e fltk: remove cf-private 2019-07-03 22:20:14 +02:00
Daiderd Jordan 6f16de27d2 ffmpeg-full: remove cf-private 2019-07-03 22:20:14 +02:00
Daiderd Jordan 7fffb620ac flow: remove cf-private 2019-07-03 22:20:13 +02:00
Daiderd Jordan 4b64dfaee9 cargo-web: remove cf-private 2019-07-03 22:20:13 +02:00
Daiderd Jordan c2205238ab watchman: remove cf-private 2019-07-03 22:20:13 +02:00
Daiderd Jordan e7765ba8e5 pinentry-mac: remove cf-private 2019-07-03 22:20:12 +02:00
Daiderd Jordan 41d1294eab keybase: remove cf-private 2019-07-03 22:20:12 +02:00
Daiderd Jordan 956c197ee6 dolphin-emu: remove cf-private 2019-07-03 22:20:11 +02:00
Daiderd Jordan 11bd54cda3 noti: remove cf-private 2019-07-03 22:20:11 +02:00
Daiderd Jordan 6172dd89c8 contacts: remove cf-private 2019-07-03 22:20:11 +02:00
Daiderd Jordan f401da6af8 atomicparsley: remove cf-private 2019-07-03 22:20:10 +02:00
Daiderd Jordan 8c6eef6328 alacritty: remove cf-private 2019-07-03 22:20:10 +02:00
Daiderd Jordan 8ea702a484 darwin-frameworks: add import CoreFoundation to CoreServices 2019-07-03 22:20:09 +02:00
Daiderd Jordan 73d9cac377 darwin-frameworks: replace cf-private and move it's setup-hook
The only remaining use-case for cf-private are symbols that are not
available in the opensource build.  This generally solved the problem
because of it's setup-hook.
2019-07-03 22:20:09 +02:00
Daiderd Jordan c2b76fa13c darwin-frameworks: remove CF
CoreFoundation is included by the stdenv, moving the decision of what
version should be used there makes it possible to override it entirely
rather then prepending flags like cf-private does which can be
unreliable.
2019-07-03 22:20:04 +02:00
rnhmjoj 1a4c624354 monero-gui: update patch 2019-07-03 21:45:36 +02:00
rnhmjoj 56bee53f42 monero-gui: bump boost version 2019-07-03 21:45:04 +02:00
rnhmjoj 1c623cc3f0 monero: bump boost version 2019-07-03 21:44:52 +02:00
rnhmjoj a402aa11fc monero: fix source hash 2019-07-03 21:44:08 +02:00
Jamey Sharp 597563d248 nixos/nscd: let systemd manage directories
Previously this module created both /var/db/nscd and /run/nscd using
shell commands in a preStart script. Note that both of these paths are
hard-coded in the nscd source. (Well, the latter is actually
/var/run/nscd but /var/run is a symlink to /run so it works out the
same.)

/var/db/nscd is only used if the nscd.conf "persistent" option is turned
on for one or more databases, which it is not in our default config
file. I'm not even sure persistent mode can work under systemd, since
`nscd --shutdown` is not synchronous so systemd will always
unceremoniously kill nscd without reliably giving it time to mark the
databases as unused. Nonetheless, if someone wants to use that option,
they can ensure the directory exists using systemd.tmpfiles.rules.

systemd can create /run/nscd for us with the RuntimeDirectory directive,
with the added benefit of causing systemd to delete the directory on
service stop or restart. The default value of RuntimeDirectoryMode is
755, the same as the mode which this module was using before.

I don't think the `rm -f /run/nscd/nscd.pid` was necessary after NixOS
switched to systemd and used its PIDFile directive, because systemd
deletes the specified file after the service stops, and because the file
can't persist across reboots since /run is a tmpfs. Even if the file
still exists when nscd starts, it's only a problem if the pid it
contains has been reused by another process, which is unlikely. Anyway,
this change makes that deletion even less necessary, because now systemd
deletes the entire /run/nscd directory when the service stops.
2019-07-03 12:39:48 -07:00