lkml.org 
[lkml]   [2021]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v26 08/25] LSM: Use lsmblob in security_secid_to_secctx
On Thu, May 13, 2021 at 4:17 PM Casey Schaufler <casey@schaufler-ca.com> wrote:
>
> Change security_secid_to_secctx() to take a lsmblob as input
> instead of a u32 secid. It will then call the LSM hooks
> using the lsmblob element allocated for that module. The
> callers have been updated as well. This allows for the
> possibility that more than one module may be called upon
> to translate a secid to a string, as can occur in the
> audit code.
>
> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
> Cc: netdev@vger.kernel.org
> Cc: linux-audit@redhat.com
> Cc: netfilter-devel@vger.kernel.org
> To: Pablo Neira Ayuso <pablo@netfilter.org>
> To: Paul Moore <paul@paul-moore.com>
> ---
> drivers/android/binder.c | 12 +++++++++-
> include/linux/security.h | 5 +++--
> include/net/scm.h | 7 +++++-
> kernel/audit.c | 20 +++++++++++++++--
> kernel/auditsc.c | 28 +++++++++++++++++++----
> net/ipv4/ip_sockglue.c | 4 +++-
> net/netfilter/nf_conntrack_netlink.c | 14 ++++++++++--
> net/netfilter/nf_conntrack_standalone.c | 4 +++-
> net/netfilter/nfnetlink_queue.c | 11 +++++++--
> net/netlabel/netlabel_unlabeled.c | 30 +++++++++++++++++++++----
> net/netlabel/netlabel_user.c | 6 ++---
> security/security.c | 11 +++++----
> 12 files changed, 123 insertions(+), 29 deletions(-)

Acked-by: Paul Moore <paul@paul-moore.com>


--
paul moore
www.paul-moore.com

\
 
 \ /
  Last update: 2021-05-21 22:19    [W:0.188 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site