summaryrefslogtreecommitdiffstats
path: root/source/lib/smbrun.c
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-03-22 23:49:09 +0000
committerJames Peach <jpeach@samba.org>2006-03-22 23:49:09 +0000
commit7966ec3612886c6b1d437aff3a4a96969b210b2b (patch)
tree877d0fb5844fae5bc4eaea6bf7e085daddc08891 /source/lib/smbrun.c
parentd8cd752d01f93f2974862afb9510ae279c349bc9 (diff)
downloadsamba-7966ec3612886c6b1d437aff3a4a96969b210b2b.tar.gz
samba-7966ec3612886c6b1d437aff3a4a96969b210b2b.tar.xz
samba-7966ec3612886c6b1d437aff3a4a96969b210b2b.zip
r14668: Set the FILE_STATUS_OFFLINE bit by observing the events a DMAPI-based
HSM is interested in. Tested on both IRIX and SLES9.
Diffstat (limited to 'source/lib/smbrun.c')
-rw-r--r--source/lib/smbrun.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/lib/smbrun.c b/source/lib/smbrun.c
index 521b1bf761e..4400aeb4433 100644
--- a/source/lib/smbrun.c
+++ b/source/lib/smbrun.c
@@ -62,9 +62,10 @@ int smbrun(const char *cmd, int *outfd)
gid_t gid = current_user.ut.gid;
/*
- * Lose any kernel oplock capabilities we may have.
+ * Lose any elevated privileges.
*/
drop_effective_capability(KERNEL_OPLOCK_CAPABILITY);
+ drop_effective_capability(DMAPI_ACCESS_CAPABILITY);
/* point our stdout at the file we want output to go into */
@@ -194,9 +195,10 @@ int smbrunsecret(const char *cmd, const char *secret)
int ifd[2];
/*
- * Lose any kernel oplock capabilities we may have.
+ * Lose any elevated privileges.
*/
drop_effective_capability(KERNEL_OPLOCK_CAPABILITY);
+ drop_effective_capability(DMAPI_ACCESS_CAPABILITY);
/* build up an input pipe */
if(pipe(ifd)) {