mirror of
https://github.com/torvalds/linux.git
synced 2025-04-09 10:27:37 +00:00

Add hooks for setselfattr and getselfattr. These hooks are not very different from their setprocattr and getprocattr equivalents, and much of the code is shared. Signed-off-by: Casey Schaufler <casey@schaufler-ca.com> Acked-by: John Johansen <john.johansen@canonical.com> [PM: forward ported beyond v6.6 due merge window changes] Signed-off-by: Paul Moore <paul@paul-moore.com>
18 lines
462 B
C
18 lines
462 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* AppArmor security module
|
|
*
|
|
* This file contains AppArmor /proc/<pid>/attr/ interface function definitions.
|
|
*
|
|
* Copyright (C) 1998-2008 Novell/SUSE
|
|
* Copyright 2009-2010 Canonical Ltd.
|
|
*/
|
|
|
|
#ifndef __AA_PROCATTR_H
|
|
#define __AA_PROCATTR_H
|
|
|
|
int aa_getprocattr(struct aa_label *label, char **string, bool newline);
|
|
int aa_setprocattr_changehat(char *args, size_t size, int flags);
|
|
|
|
#endif /* __AA_PROCATTR_H */
|