Add file creation/unlinking utils to directory handle
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 9 May 2019 18:10:58 +0000 (14:10 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 5 Sep 2019 20:39:13 +0000 (16:39 -0400)
commita4ee1b7e15b25e449c62a929e35850b2916f54cc
tree742b51b6e1546999d8b7a1fb7737e5f0497bba9f
parentfdc04e4bff947b0a6df1257476958cb875595fa3
Add file creation/unlinking utils to directory handle

This commit adds file creation and unlinking functions to the
directory handle interface and corresponding run_as wrappers.

This allows the creation and unlinking of files relative to
an existing directory handle using either openat/unlinkat when
directory file descriptors are supported or open/unlink when
they are not.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/compat/directory-handle.c
src/common/compat/directory-handle.h
src/common/runas.c
src/common/runas.h
This page took 0.02545 seconds and 4 git commands to generate.