diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-04-01 15:19:17 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2010-04-01 15:19:17 -0400 |
commit | 294215ef969ce3ecb91063fbbb8a8c075272cc8d (patch) | |
tree | 3c28e1be371ef60f7e74ebab36e39484dd2b9572 /replace.h | |
parent | e87a203fbaf059831292f2cb9a0692ef7a78a267 (diff) | |
download | cifs-utils-294215ef969ce3ecb91063fbbb8a8c075272cc8d.tar.gz cifs-utils-294215ef969ce3ecb91063fbbb8a8c075272cc8d.tar.bz2 cifs-utils-294215ef969ce3ecb91063fbbb8a8c075272cc8d.zip |
mount.cifs: introduce privilege separation
Much of the mount option parsing and other activities can be done by an
unprivileged process. Allocate the parsed_mount_info struct as an
anonymous mmap() segment and then fork to do the actual mount option
parsing. The child can then drop root privileges before populating the
parsed_mount_info struct. The parent waits for the child to exit and
then continues the mount process based on the child's exit status.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'replace.h')
0 files changed, 0 insertions, 0 deletions