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)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 2 Apr 2012 20:23:55 +0000 (13:23 -0700)
commite6461083b683c03ac1ac67e385e564d8f99e56a9
tree5ee020d77c64dd89d0c48b40c41b862292a95b19
parent50fa3141ff61fedf02eb456a87f0c146bffc577b
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>
(cherry picked from commit 57fa1e18091e66b7e1002816523cb218196a882e)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
security/apparmor/domain.c
security/apparmor/file.c
security/apparmor/include/path.h
security/apparmor/path.c