summaryrefslogtreecommitdiff
path: root/support/support_become_root.c
AgeCommit message (Collapse)Author
2018-01-01Update copyright dates with scripts/update-copyrights.Joseph Myers
* All files with FSF copyright notices: Update copyright dates using scripts/update-copyrights. * locale/programs/charmap-kw.h: Regenerated. * locale/programs/locfile-kw.h: Likewise.
2017-11-18support_become_root: Fix comment styleChristian Brauner
2017-11-18support_become_root: Don't fail when /proc/<pid/setgroups is missingChristian Brauner
The requirement to write "deny" to /proc/<pid>/setgroups for a given user namespace before being able to write a gid mapping was introduced in Linux 3.19. Before that this requirement including the file did not exist. So don't fail when errno == ENOENT.
2017-11-17support_become_root: Enable file creation in user namespacesFlorian Weimer
Without UID/GID maps, file creation will file with EOVERFLOW. This patch is based on DJ Delorie's work on container testing. Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
2017-01-01Update copyright dates with scripts/update-copyrights.Joseph Myers
2016-12-31support: Helper functions for entering namespacesFlorian Weimer