mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-21 04:33:49 +00:00
sysctl security/tomoyo: Don't look at ctl_name
ctl_name field was removed. Always use procname field. Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
This commit is contained in:
parent
5046961999
commit
86b1bc68e2
@ -122,15 +122,7 @@ static char *tomoyo_sysctl_path(struct ctl_table *table)
|
||||
*--end = '\0';
|
||||
buflen--;
|
||||
while (table) {
|
||||
char num[32];
|
||||
const char *sp = table->procname;
|
||||
|
||||
if (!sp) {
|
||||
memset(num, 0, sizeof(num));
|
||||
snprintf(num, sizeof(num) - 1, "=%d=", table->ctl_name);
|
||||
sp = num;
|
||||
}
|
||||
if (tomoyo_prepend(&end, &buflen, sp) ||
|
||||
if (tomoyo_prepend(&end, &buflen, table->procname) ||
|
||||
tomoyo_prepend(&end, &buflen, "/"))
|
||||
goto out;
|
||||
table = table->parent;
|
||||
|
Loading…
x
Reference in New Issue
Block a user