mirror of
https://github.com/dynup/kpatch
synced 2024-12-25 06:42:05 +00:00
Merge pull request #467 from flaming-toast/sysfs_perm
Restrict reading old_addr and new_addr to root only
This commit is contained in:
commit
97c2bea0c0
@ -118,10 +118,10 @@ static ssize_t patch_func_new_addr_show(struct kobject *kobj,
|
||||
}
|
||||
|
||||
static struct kobj_attribute patch_old_addr_attr =
|
||||
__ATTR(old_addr, S_IRUGO, patch_func_old_addr_show, NULL);
|
||||
__ATTR(old_addr, S_IRUSR, patch_func_old_addr_show, NULL);
|
||||
|
||||
static struct kobj_attribute patch_new_addr_attr =
|
||||
__ATTR(new_addr, S_IRUGO, patch_func_new_addr_show, NULL);
|
||||
__ATTR(new_addr, S_IRUSR, patch_func_new_addr_show, NULL);
|
||||
|
||||
static void patch_func_kobj_free(struct kobject *kobj)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user