From cd4c0ce02d4104c7655fe7e426d9bad3e0929846 Mon Sep 17 00:00:00 2001 From: Jessica Yu Date: Fri, 7 Nov 2014 21:30:32 -0800 Subject: [PATCH] kpatch-patch-hook: change old_addr and new_addr perms to readable by root only --- kmod/patch/kpatch-patch-hook.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kmod/patch/kpatch-patch-hook.c b/kmod/patch/kpatch-patch-hook.c index 3c38f02..51aff44 100644 --- a/kmod/patch/kpatch-patch-hook.c +++ b/kmod/patch/kpatch-patch-hook.c @@ -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) {