diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/ss/services.c | 2 | ||||
-rw-r--r-- | security/smack/smack_lsm.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index f37418601215..47295acd09c9 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c | |||
@@ -2649,7 +2649,7 @@ int security_netlbl_sid_to_secattr(u32 sid, struct netlbl_lsm_secattr *secattr) | |||
2649 | goto netlbl_sid_to_secattr_failure; | 2649 | goto netlbl_sid_to_secattr_failure; |
2650 | secattr->domain = kstrdup(policydb.p_type_val_to_name[ctx->type - 1], | 2650 | secattr->domain = kstrdup(policydb.p_type_val_to_name[ctx->type - 1], |
2651 | GFP_ATOMIC); | 2651 | GFP_ATOMIC); |
2652 | secattr->flags |= NETLBL_SECATTR_DOMAIN; | 2652 | secattr->flags |= NETLBL_SECATTR_DOMAIN_CPY; |
2653 | mls_export_netlbl_lvl(ctx, secattr); | 2653 | mls_export_netlbl_lvl(ctx, secattr); |
2654 | rc = mls_export_netlbl_cat(ctx, secattr); | 2654 | rc = mls_export_netlbl_cat(ctx, secattr); |
2655 | if (rc != 0) | 2655 | if (rc != 0) |
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 732ba27923c4..e2d6f7cd9254 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c | |||
@@ -1275,7 +1275,7 @@ static void smack_to_secattr(char *smack, struct netlbl_lsm_secattr *nlsp) | |||
1275 | 1275 | ||
1276 | switch (smack_net_nltype) { | 1276 | switch (smack_net_nltype) { |
1277 | case NETLBL_NLTYPE_CIPSOV4: | 1277 | case NETLBL_NLTYPE_CIPSOV4: |
1278 | nlsp->domain = kstrdup(smack, GFP_ATOMIC); | 1278 | nlsp->domain = smack; |
1279 | nlsp->flags = NETLBL_SECATTR_DOMAIN | NETLBL_SECATTR_MLS_LVL; | 1279 | nlsp->flags = NETLBL_SECATTR_DOMAIN | NETLBL_SECATTR_MLS_LVL; |
1280 | 1280 | ||
1281 | rc = smack_to_cipso(smack, &cipso); | 1281 | rc = smack_to_cipso(smack, &cipso); |