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-05-13 16:23:57 +02:00
2016-02-28 16:18:39 +01:00
2016-03-19 03:18:17 +01:00
2016-03-30 22:22:40 +02:00
2015-09-06 14:44:13 +02:00
2015-09-15 14:25:36 +02:00
2015-10-05 22:10:40 -06:00
2016-01-24 04:06:19 +00:00
2016-01-23 01:20:14 +01:00
2015-08-28 13:27:51 +02:00
2015-09-06 15:20:56 +02:00
2015-08-31 18:36:32 +02:00
2015-12-06 13:35:21 +00:00
2015-11-23 06:39:19 -06:00
2015-12-25 15:55:07 +01:00