diff options
author | James Peach <jpeach@samba.org> | 2006-03-22 23:49:09 +0000 |
---|---|---|
committer | James Peach <jpeach@samba.org> | 2006-03-22 23:49:09 +0000 |
commit | 7966ec3612886c6b1d437aff3a4a96969b210b2b (patch) | |
tree | 877d0fb5844fae5bc4eaea6bf7e085daddc08891 /source/lib/smbrun.c | |
parent | d8cd752d01f93f2974862afb9510ae279c349bc9 (diff) | |
download | samba-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.c | 6 |
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)) { |