Unverified Commit 177fec56 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!3286 block: Add config option to not allow writing to mounted devices

Merge Pull Request from: @ci-robot 
 
PR sync from: Li Lingfeng <lilingfeng3@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/QZAWPOFQC64IDKTWQW5AXRSXCMSZBZYJ/ 
This feature is controlled by both CONFIG_BLK_DEV_WRITE_MOUNTED and
cmdline parameters bdev_allow_write_mounted, and bdev_allow_write_mounted
has a higher priority.

Jan Kara (5):
  block: Add config option to not allow writing to mounted devices
  btrfs: Do not restrict writes to btrfs devices
  fs: Block writes to mounted block devices
  xfs: Block writes to log device
  ext4: Block writes to journal device


-- 
2.31.1
 
https://gitee.com/openeuler/kernel/issues/I8MPXP 
 
Link:https://gitee.com/openeuler/kernel/pulls/3286

 

Reviewed-by: default avatarzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents a04726f1 c4172e33
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment