Joachim Fasting cef2814a4f nixos: add optional process information hiding
This module adds an option `security.hideProcessInformation` that, when
enabled, restricts access to process information such as command-line
arguments to the process owner.  The module adds a static group "proc"
whose members are exempt from process information hiding.

Ideally, this feature would be implemented by simply adding the
appropriate mount options to `fileSystems."/proc".fsOptions`, but this
was found to not work in vmtests. To ensure that process information
hiding is enforced, we use a systemd service unit that remounts `/proc`
after `systemd-remount-fs.service` has completed.

To verify the correctness of the feature, simple tests were added to
nixos/tests/misc: the test ensures that unprivileged users cannot see
process information owned by another user, while members of "proc" CAN.

Thanks to @abbradar for feedback and suggestions.
2016-04-10 12:27:06 +02:00
..
2015-12-12 16:06:53 +01:00
2015-07-15 12:40:06 +02:00
2016-01-26 16:25:40 +01:00
2016-02-27 22:25:39 +13:00
2016-03-12 20:19:40 +00:00
2016-02-25 13:52:45 +00:00
2016-02-25 13:52:45 +00:00
2014-04-28 23:57:37 +02:00
2015-09-18 18:48:50 +00:00
2015-01-06 17:27:07 +03:00
2014-04-21 23:22:10 +02:00