kpatch-patch-hook: change old_addr and new_addr perms to readable by root only

This commit is contained in:
Jessica Yu 2014-11-07 21:30:32 -08:00
parent f0ab1caad1
commit cd4c0ce02d
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{