summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-10-02 10:22:39 -0700
committerJeremy Allison <jra@samba.org>2012-10-02 11:41:35 -0700
commit8f0ecbbbeebff0174579a78827d384067cd4cbb7 (patch)
treec0a9604ead35a7d6c622da7d53a26eb76ffbec66 /source3/param
parent6575d1d34fee45c7a965c7c9641cc52b566a9e7f (diff)
downloadsamba-8f0ecbbbeebff0174579a78827d384067cd4cbb7.tar.gz
samba-8f0ecbbbeebff0174579a78827d384067cd4cbb7.tar.bz2
samba-8f0ecbbbeebff0174579a78827d384067cd4cbb7.zip
Add functions to programatically set the security mask and directory security mask parameters.
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 61606ce9d2..960a644e1a 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -5476,3 +5476,17 @@ int lp_security(void)
return lp_find_security(lp__server_role(),
lp__security());
}
+
+int lp_set_security_mask(int snum, int new_val)
+{
+ int ret = ServicePtrs[snum]->iSecurity_mask;
+ ServicePtrs[snum]->iSecurity_mask = new_val;
+ return ret;
+}
+
+int lp_set_directory_security_mask(int snum, int new_val)
+{
+ int ret = ServicePtrs[snum]->iDir_Security_mask;
+ ServicePtrs[snum]->iDir_Security_mask = new_val;
+ return ret;
+}