Path: blob/master/security/apparmor/include/domain.h
10818 views
/*1* AppArmor security module2*3* This file contains AppArmor security domain transition function definitions.4*5* Copyright (C) 1998-2008 Novell/SUSE6* Copyright 2009-2010 Canonical Ltd.7*8* This program is free software; you can redistribute it and/or9* modify it under the terms of the GNU General Public License as10* published by the Free Software Foundation, version 2 of the11* License.12*/1314#include <linux/binfmts.h>15#include <linux/types.h>1617#ifndef __AA_DOMAIN_H18#define __AA_DOMAIN_H1920struct aa_domain {21int size;22char **table;23};2425int apparmor_bprm_set_creds(struct linux_binprm *bprm);26int apparmor_bprm_secureexec(struct linux_binprm *bprm);27void apparmor_bprm_committing_creds(struct linux_binprm *bprm);28void apparmor_bprm_committed_creds(struct linux_binprm *bprm);2930void aa_free_domain_entries(struct aa_domain *domain);31int aa_change_hat(const char *hats[], int count, u64 token, bool permtest);32int aa_change_profile(const char *ns_name, const char *name, bool onexec,33bool permtest);3435#endif /* __AA_DOMAIN_H */363738