Home
last modified time | relevance | path

Searched hist:"7 cb4dc9f" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/security/apparmor/
H A Dlsm.c7cb4dc9f Wed Aug 11 04:28:02 CDT 2010 Jiri Slaby <jslaby@suse.cz> AppArmor: fix task_setrlimit prototype

After rlimits tree was merged we get the following errors:
security/apparmor/lsm.c:663:2: warning: initialization from incompatible pointer type

It is because AppArmor was merged in the meantime, but uses the old
prototype. So fix it by adding struct task_struct as a first parameter
of apparmor_task_setrlimit.

NOTE that this is ONLY a compilation warning fix (and crashes caused
by that). It needs proper handling in AppArmor depending on who is the
'task'.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: James Morris <jmorris@namei.org>