cifs-utils/mount.cifs-toggle_dac_capability-remove-check.diff
Lars Müller bab4f11c74 - mount.cifs: don't pass credentials= option to the kernel.
- doc: update mailing list.
- mount.cifs: don't send a mandatory ver= option to the kernel.
- mount.cifs: remove smb2 multicall binary code.
- doc: remove old XML sources for mount.cifs.8 and cifs.upcall.8.
- mount.cifs: unused variables.

OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/cifs-utils?expand=0&rev=58
2012-05-26 11:44:52 +00:00

25 lines
857 B
Diff

I'm not sure what I was thinking when I added that check in, but it's
been there since the inception. We shouldn't care at all what the
real uid is when we call toggle_dac_capability and indeed we don't
care with the libcap-ng version. Remove that check.
Signed-off-by: Jeff Layton <jlayton@samba.org>
---
mount.cifs.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
Index: cifs-utils-5.4/mount.cifs.c
===================================================================
--- cifs-utils-5.4.orig/mount.cifs.c
+++ cifs-utils-5.4/mount.cifs.c
@@ -552,9 +552,6 @@ toggle_dac_capability(int writable, int
cap_t caps;
cap_value_t capability = writable ? CAP_DAC_OVERRIDE : CAP_DAC_READ_SEARCH;
- if (getuid() != 0)
- return 0;
-
caps = cap_get_proc();
if (caps == NULL) {
fprintf(stderr, "Unable to get current capability set: %s\n",