linux/drivers/staging
NeilBrown f497115d4c staging: lustre: simplify capability dropping.
Lustre has a 'squash credentials' concept similar to the "anon_uid"
for nfsd.  When accessing a file with squashed credentials, we
need to also drop capabilities.
Linux has cap_drop_fs_set() and cap_drop_nfsd_set().  Rather than
taking a completely different approach, this patch changes lustre
to use this same cap_drop_*_set() approach.

With this change we also drop CAP_MKNOD and CAP_MAC_OVERRIDE
which are probably appropriate, and don't drop
CAP_SYS_ADMIN or CAP_SYS_BOOT which should be irrelevant for
file permission checking

Calling both cap_drop_*_set() seems a bit clumsy, but gets
the job done.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-25 18:29:10 +02:00
..
android staging: android: ion: Switch to pr_warn_once in ion_buffer_destroy 2018-05-15 09:31:39 +02:00
board staging: board: Replace license boilerplate with SPDX identifiers 2018-05-06 19:11:23 -07:00
clocking-wizard
comedi staging: comedi: comedidev.h: Fix SPDX-License-Identifier tag style 2018-05-25 18:25:30 +02:00
dgnc
emxx_udc staging: emxx_udc: Add GPIO descriptor work to TODO 2018-04-23 14:36:10 +02:00
fbtft staging: fbtft: Fixed lines exceeding columns limit 2018-04-23 14:36:16 +02:00
fsl-dpaa2 staging: fsl-dpaa2/rtc: support phc_index of ethtool_ts_info 2018-04-29 15:25:08 +02:00
fsl-mc staging: fsl-mc/dpio: Fix the error handling in probe() 2018-04-29 15:25:08 +02:00
fwserial
gdm724x staging: gdm724x: remove redundant license information 2018-04-26 09:17:34 +02:00
goldfish Staging: goldfish: Kconfig: fixed code style issue 2018-05-20 14:31:28 +02:00
greybus staging: greybus: Remove unused local variable 2018-05-06 19:11:23 -07:00
gs_fpgaboot
iio staging:iio:meter: Drop ADE7759 driver 2018-05-20 12:21:54 +01:00
ipx
ks7010 staging: ks7010: avoid casting inside cpu_to_* assignments 2018-05-20 14:47:14 +02:00
lustre staging: lustre: simplify capability dropping. 2018-05-25 18:29:10 +02:00
media staging: atomisp: Augment TODO file with GPIO work item 2018-04-23 14:36:10 +02:00
most staging: most: video: fix build warnings 2018-05-14 11:42:28 +02:00
mt29f_spinand MTD changes: 2018-04-06 12:15:41 -07:00
mt7621-dma staging: mt7621-dma: Fixing parenthesis alignment 2018-03-23 16:00:18 +01:00
mt7621-dts staging: mt7621-dts: update nor-flash info for gnubee1 2018-05-06 19:09:24 -07:00
mt7621-eth staging: mt7621-eth: Remove unused variable 2018-05-15 09:31:38 +02:00
mt7621-gpio staging: mt7621-gpio: add SPDX identifier 2018-05-15 09:31:39 +02:00
mt7621-mmc staging: mt7621-mmc: fix spelling mistake: "Eanable" -> "Enable" 2018-05-20 14:44:12 +02:00
mt7621-pci staging: mt7621-pci: remove some dead code. 2018-05-06 19:09:23 -07:00
mt7621-pinctrl staging: mt7621-pinctrl: Remove redundant owner assignment 2018-04-23 15:37:13 +02:00
mt7621-spi staging: mt7621-spi: remove unused lock. 2018-05-06 19:09:23 -07:00
ncpfs
netlogic
nvec Revert "staging: nvec: Augment TODO file with GPIO work item" 2018-04-23 18:49:51 +02:00
octeon
octeon-usb
olpc_dcon staging: olpc_dcon: Augment TODO file with GPIO work item 2018-04-23 14:36:10 +02:00
pi433 staging: pi433: break long lines in pi433_if.c 2018-04-25 15:58:04 +02:00
rtl8188eu staging:r8188eu: Remove rx_handler_data unnecessary read 2018-05-11 11:48:24 +02:00
rtl8192e staging: rtl8192e: Fixed coding style around a plus sign 2018-04-23 15:51:34 +02:00
rtl8192u staging: rtl8192e: Add blank space before '(' - coding style. 2018-05-20 14:50:36 +02:00
rtl8712
rtl8723bs staging: rtl8723bs: Fix checkpatch.pl errors 2018-05-15 09:31:38 +02:00
rtlwifi staging: rtlwifi: fix spelling mistake: "traking" -> "tracking" 2018-05-11 11:48:24 +02:00
rts5208
skein
sm750fb staging: sm750fb: add drm development branch details 2018-05-06 18:51:38 -07:00
speakup staging: speakup: use true/false instead of 1/0 2018-05-15 09:31:38 +02:00
typec
unisys staging: visornic: fix visornic_xmit()'s return type 2018-04-25 15:58:04 +02:00
vboxvideo staging: vboxvideo: fix mode_valid's return type 2018-04-25 15:58:04 +02:00
vc04_services staging: bcm2835: Use BIT_ULL macro 2018-05-14 14:05:49 +02:00
vme staging: vme: vme_user: Fix some error handling paths in 'vme_user_probe()' 2018-03-23 15:55:21 +01:00
vt6655 staging: vt6655: remove unnecessary line breaks in function definition. 2018-04-23 15:23:36 +02:00
vt6656
wilc1000 staging: wilc1000: refactor host_int_parse_assoc_resp_info() to remove unused code 2018-05-14 14:04:49 +02:00
wlan-ng staging: wlan-ng: fix coding style issues in p80211netdev.c 2018-05-20 14:34:25 +02:00
xgifb
Kconfig
Makefile