patch-2.1.100 linux/drivers/block/loop.c
Next file: linux/drivers/block/md.c
Previous file: linux/drivers/block/ide.h
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed May 6 10:56:02 1998
- Orig file:
v2.1.99/linux/drivers/block/loop.c
- Orig date:
Thu Mar 26 15:57:02 1998
diff -u --recursive --new-file v2.1.99/linux/drivers/block/loop.c linux/drivers/block/loop.c
@@ -448,7 +448,7 @@
info.lo_flags = lo->lo_flags;
strncpy(info.lo_name, lo->lo_name, LO_NAME_SIZE);
info.lo_encrypt_type = lo->lo_encrypt_type;
- if (lo->lo_encrypt_key_size && suser()) {
+ if (lo->lo_encrypt_key_size && capable(CAP_SYS_ADMIN)) {
info.lo_encrypt_key_size = lo->lo_encrypt_key_size;
memcpy(info.lo_encrypt_key, lo->lo_encrypt_key,
lo->lo_encrypt_key_size);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov