summaryrefslogtreecommitdiff
path: root/modules/pam_namespace/namespace.init
diff options
context:
space:
mode:
authorTomas Mraz <tm@t8m.info>2008-04-18 12:53:38 +0000
committerTomas Mraz <tm@t8m.info>2008-04-18 12:53:38 +0000
commit902026536a826400014a7508b008e41269d081e6 (patch)
tree90c35614bc4a873845fafcf806385312fc05903f /modules/pam_namespace/namespace.init
parent31a8f873dac892b15d374d8eb33037515678d6af (diff)
Relevant BUGIDs:
Purpose of commit: new feature Commit summary: --------------- 2008-04-18 Tomas Mraz <t8m@centrum.cz> * modules/pam_namespace/pam_namespace.c: New functions unprotect_dirs(), cleanup_protect_data(), protect_mount(), protect_dir() to protect directory by bind mount. (cleanup_data): Renamed to cleanup_polydir_data(). (parse_create_params): Allow missing specification of mode or owner. (check_inst_parent): Call protect_dir() on the instance parent directory. The directory is created when it doesn't exist. (create_polydir): Protect and make the polydir by protect_dir(), remove potential races. (create_dirs): Renamed to create_instance(), remove call to inst_init(). (ns_setup): Call protect_dir() on the polydir if it already exists. Call inst_init() after the polydir is mounted. (setup_namespace): Set the namespace protect data to be cleaned up on pam_close_session()/pam_end(). (pam_sm_open_session): Initialize the protect_dirs. (pam_sm_close_session): Cleanup namespace protect data. * modules/pam_namespace/pam_namespace.h: Define struct for the stack of protected dirs. * modules/pam_namespace/pam_namespace.8.xml: Document when the instance init script is called. * modules/pam_namespace/namespace.conf.5.xml: Likewise.
Diffstat (limited to 'modules/pam_namespace/namespace.init')
0 files changed, 0 insertions, 0 deletions