07 May, 2014
1 commit
-
too many places open-code it
Signed-off-by: Al Viro
15 Aug, 2013
1 commit
-
This is a follow-up to commit b5b3ee6c "apparmor: no need to delay vfree()".
Since vmalloc() will do "size = PAGE_ALIGN(size);",
we don't need to check for "size >= sizeof(struct work_struct)".Signed-off-by: Tetsuo Handa
Signed-off-by: John Johansen
12 May, 2013
1 commit
-
vfree() can be called from interrupt contexts now
Signed-off-by: Al Viro
Acked-by: John Johansen
Signed-off-by: James Morris
28 Apr, 2013
2 commits
-
currently apparmor name parsing is only correctly handling
::but
:://is also a valid form and what is exported to userspace.
Signed-off-by: John Johansen
-
Signed-off-by: John Johansen
Acked-by: Steve Beattie
10 Apr, 2012
2 commits
-
It isn't needed. If you don't set the type of the data associated with
that type it is a pretty obvious programming bug. So why waste the cycles?Signed-off-by: Eric Paris
-
Just open code it so grep on the source code works better.
Signed-off-by: Eric Paris
04 Apr, 2012
1 commit
-
Linus found that the gigantic size of the common audit data caused a big
perf hit on something as simple as running stat() in a loop. This patch
requires LSMs to declare the LSM specific portion separately rather than
doing it in a union. Thus each LSM can be responsible for shrinking their
portion and don't have to pay a penalty just because other LSMs have a
bigger space requirement.Signed-off-by: Eric Paris
Signed-off-by: Linus Torvalds
10 Sep, 2011
1 commit
-
Fix the following sparse warnings:
security/apparmor/lib.c:37:6: warning: symbol 'aa_split_fqname' was not declared. Should it be static?
security/apparmor/lib.c:63:6: warning: symbol 'aa_info_message' was not declared. Should it be static?
security/apparmor/lib.c:83:6: warning: symbol 'kvmalloc' was not declared. Should it be static?
security/apparmor/lib.c:123:6: warning: symbol 'kvfree' was not declared. Should it be static?Signed-off-by: James Morris
22 Jun, 2011
1 commit
-
Remove linux/mm.h inclusion from netdevice.h -- it's unused (I've checked manually).
To prevent mm.h inclusion via other channels also extract "enum dma_data_direction"
definition into separate header. This tiny piece is what gluing netdevice.h with mm.h
via "netdevice.h => dmaengine.h => dma-mapping.h => scatterlist.h => mm.h".
Removal of mm.h from scatterlist.h was tried and was found not feasible
on most archs, so the link was cutoff earlier.Hope people are OK with tiny include file.
Note, that mm_types.h is still dragged in, but it is a separate story.
Signed-off-by: Alexey Dobriyan
Signed-off-by: David S. Miller
08 Sep, 2010
1 commit
-
As per Dan Carpenter
If we have a ns name without a following profile then in the original
code it did "*ns_name = &name[1];". "name" is NULL so "*ns_name" is
0x1. That isn't useful and could cause an oops when this function is
called from aa_remove_profiles().Beyond this the assignment of the namespace name was wrong in the case
where the profile name was provided as it was being set to &name[1]
after name = skip_spaces(split + 1);Move the ns_name assignment before updating name for the split and
also add skip_spaces, making the interface more robust.Signed-off-by: John Johansen
Signed-off-by: James Morris
02 Aug, 2010
1 commit
-
Miscellaneous functions and defines needed by AppArmor, including
the base path resolution routines.Signed-off-by: John Johansen
Signed-off-by: James Morris