@@ -524,7 +524,7 @@ struct aa_label *x_table_lookup(struct aa_profile *profile, u32 xindex,
524
524
label = & new_profile -> label ;
525
525
continue ;
526
526
}
527
- label = aa_label_parse (& profile -> label , * name , GFP_ATOMIC ,
527
+ label = aa_label_parse (& profile -> label , * name , GFP_KERNEL ,
528
528
true, false);
529
529
if (IS_ERR (label ))
530
530
label = NULL ;
@@ -604,7 +604,7 @@ static struct aa_label *x_to_label(struct aa_profile *profile,
604
604
/* base the stack on post domain transition */
605
605
struct aa_label * base = new ;
606
606
607
- new = aa_label_parse (base , stack , GFP_ATOMIC , true, false);
607
+ new = aa_label_parse (base , stack , GFP_KERNEL , true, false);
608
608
if (IS_ERR (new ))
609
609
new = NULL ;
610
610
aa_put_label (base );
@@ -712,7 +712,7 @@ static struct aa_label *profile_transition(struct aa_profile *profile,
712
712
if (DEBUG_ON ) {
713
713
dbg_printk ("apparmor: scrubbing environment variables"
714
714
" for %s profile=" , name );
715
- aa_label_printk (new , GFP_ATOMIC );
715
+ aa_label_printk (new , GFP_KERNEL );
716
716
dbg_printk ("\n" );
717
717
}
718
718
* secure_exec = true;
@@ -788,7 +788,7 @@ static int profile_onexec(struct aa_profile *profile, struct aa_label *onexec,
788
788
if (DEBUG_ON ) {
789
789
dbg_printk ("apparmor: scrubbing environment "
790
790
"variables for %s label=" , xname );
791
- aa_label_printk (onexec , GFP_ATOMIC );
791
+ aa_label_printk (onexec , GFP_KERNEL );
792
792
dbg_printk ("\n" );
793
793
}
794
794
* secure_exec = true;
@@ -822,7 +822,7 @@ static struct aa_label *handle_onexec(struct aa_label *label,
822
822
bprm , buffer , cond , unsafe ));
823
823
if (error )
824
824
return ERR_PTR (error );
825
- new = fn_label_build_in_ns (label , profile , GFP_ATOMIC ,
825
+ new = fn_label_build_in_ns (label , profile , GFP_KERNEL ,
826
826
aa_get_newest_label (onexec ),
827
827
profile_transition (profile , bprm , buffer ,
828
828
cond , unsafe ));
@@ -834,9 +834,9 @@ static struct aa_label *handle_onexec(struct aa_label *label,
834
834
buffer , cond , unsafe ));
835
835
if (error )
836
836
return ERR_PTR (error );
837
- new = fn_label_build_in_ns (label , profile , GFP_ATOMIC ,
837
+ new = fn_label_build_in_ns (label , profile , GFP_KERNEL ,
838
838
aa_label_merge (& profile -> label , onexec ,
839
- GFP_ATOMIC ),
839
+ GFP_KERNEL ),
840
840
profile_transition (profile , bprm , buffer ,
841
841
cond , unsafe ));
842
842
}
@@ -907,7 +907,7 @@ int apparmor_bprm_set_creds(struct linux_binprm *bprm)
907
907
new = handle_onexec (label , ctx -> onexec , ctx -> token ,
908
908
bprm , buffer , & cond , & unsafe );
909
909
else
910
- new = fn_label_build (label , profile , GFP_ATOMIC ,
910
+ new = fn_label_build (label , profile , GFP_KERNEL ,
911
911
profile_transition (profile , bprm , buffer ,
912
912
& cond , & unsafe ));
913
913
@@ -951,7 +951,7 @@ int apparmor_bprm_set_creds(struct linux_binprm *bprm)
951
951
if (DEBUG_ON ) {
952
952
dbg_printk ("scrubbing environment variables for %s "
953
953
"label=" , bprm -> filename );
954
- aa_label_printk (new , GFP_ATOMIC );
954
+ aa_label_printk (new , GFP_KERNEL );
955
955
dbg_printk ("\n" );
956
956
}
957
957
bprm -> secureexec = 1 ;
@@ -962,7 +962,7 @@ int apparmor_bprm_set_creds(struct linux_binprm *bprm)
962
962
if (DEBUG_ON ) {
963
963
dbg_printk ("apparmor: clearing unsafe personality "
964
964
"bits. %s label=" , bprm -> filename );
965
- aa_label_printk (new , GFP_ATOMIC );
965
+ aa_label_printk (new , GFP_KERNEL );
966
966
dbg_printk ("\n" );
967
967
}
968
968
bprm -> per_clear |= PER_CLEAR_ON_SETID ;
0 commit comments