https://github.com/torvalds/linux
Revision 19fe43a54fb67b6cc8857e65c78e1dc8aa2e97a3 authored by Geert Uytterhoeven on 06 July 2017, 08:56:21 UTC, committed by John Johansen on 22 September 2017, 20:00:57 UTC
with W=2:

    security/apparmor/policy_unpack.c: In function ‘unpack_trans_table’:
    security/apparmor/policy_unpack.c:469: warning: declaration of ‘pos’ shadows a previous local
    security/apparmor/policy_unpack.c:451: warning: shadowed declaration is here

Rename the old "pos" to "saved_pos" to fix this.

Fixes: 5379a3312024a8be ("apparmor: support v7 transition format compatible with label_parse")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
1 parent 520eccd
History
Tip revision: 19fe43a54fb67b6cc8857e65c78e1dc8aa2e97a3 authored by Geert Uytterhoeven on 06 July 2017, 08:56:21 UTC
apparmor: Fix shadowed local variable in unpack_trans_table()
Tip revision: 19fe43a
File Mode Size
apparmor
integrity
keys
loadpin
selinux
smack
tomoyo
yama
Kconfig -rw-r--r-- 8.9 KB
Makefile -rw-r--r-- 989 bytes
commoncap.c -rw-r--r-- 31.5 KB
device_cgroup.c -rw-r--r-- 21.0 KB
inode.c -rw-r--r-- 10.5 KB
lsm_audit.c -rw-r--r-- 10.7 KB
min_addr.c -rw-r--r-- 1.3 KB
security.c -rw-r--r-- 42.9 KB

back to top