AppArmor: Move path failure information into aa_get_name and rename
authorJohn Johansen <john.johansen@canonical.com>
Thu, 16 Feb 2012 14:20:33 +0000 (06:20 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 14 Mar 2012 13:15:25 +0000 (06:15 -0700)
commit57fa1e18091e66b7e1002816523cb218196a882e
tree29b4b3484fb17d60d7c6e24d107a74180ec815be
parent0fe1212d0539eb6c1e27d388711172d786e299cc
AppArmor: Move path failure information into aa_get_name and rename

Move the path name lookup failure messages into the main path name lookup
routine, as the information is useful in more than just aa_path_perm.

Also rename aa_get_name to aa_path_name as it is not getting a reference
counted object with a corresponding put fn.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Kees Cook <kees@ubuntu.com>
security/apparmor/domain.c
security/apparmor/file.c
security/apparmor/include/path.h
security/apparmor/path.c