calipso.c (58e16d792a6a8c6b750f637a4649967fcac853dc) calipso.c (eead1c2ea2509fd754c6da893a94f0e69e83ebe4)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * CALIPSO - Common Architecture Label IPv6 Security Option
4 *
5 * This is an implementation of the CALIPSO protocol as specified in
6 * RFC 5570.
7 *
8 * Authors: Paul Moore <paul.moore@hp.com>

--- 1033 unchanged lines hidden (view full) ---

1042 calipso + 10,
1043 cat_len,
1044 secattr);
1045 if (ret_val != 0) {
1046 netlbl_catmap_free(secattr->attr.mls.cat);
1047 goto getattr_return;
1048 }
1049
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * CALIPSO - Common Architecture Label IPv6 Security Option
4 *
5 * This is an implementation of the CALIPSO protocol as specified in
6 * RFC 5570.
7 *
8 * Authors: Paul Moore <paul.moore@hp.com>

--- 1033 unchanged lines hidden (view full) ---

1042 calipso + 10,
1043 cat_len,
1044 secattr);
1045 if (ret_val != 0) {
1046 netlbl_catmap_free(secattr->attr.mls.cat);
1047 goto getattr_return;
1048 }
1049
1050 secattr->flags |= NETLBL_SECATTR_MLS_CAT;
1050 if (secattr->attr.mls.cat)
1051 secattr->flags |= NETLBL_SECATTR_MLS_CAT;
1051 }
1052
1053 secattr->type = NETLBL_NLTYPE_CALIPSO;
1054
1055getattr_return:
1056 rcu_read_unlock();
1057 return ret_val;
1058}

--- 404 unchanged lines hidden ---
1052 }
1053
1054 secattr->type = NETLBL_NLTYPE_CALIPSO;
1055
1056getattr_return:
1057 rcu_read_unlock();
1058 return ret_val;
1059}

--- 404 unchanged lines hidden ---