| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * AppArmor security module |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Copyright (C) 1998-2008 Novell/SUSE |
|---|
| 7 | 8 | * Copyright 2009-2017 Canonical Ltd. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or |
|---|
| 10 | | - * modify it under the terms of the GNU General Public License as |
|---|
| 11 | | - * published by the Free Software Foundation, version 2 of the |
|---|
| 12 | | - * License. |
|---|
| 13 | 9 | */ |
|---|
| 14 | 10 | |
|---|
| 15 | 11 | #ifndef __AA_NET_H |
|---|
| .. | .. |
|---|
| 83 | 79 | __e; \ |
|---|
| 84 | 80 | }) |
|---|
| 85 | 81 | |
|---|
| 82 | +struct aa_secmark { |
|---|
| 83 | + u8 audit; |
|---|
| 84 | + u8 deny; |
|---|
| 85 | + u32 secid; |
|---|
| 86 | + char *label; |
|---|
| 87 | +}; |
|---|
| 88 | + |
|---|
| 86 | 89 | extern struct aa_sfs_entry aa_sfs_entry_network[]; |
|---|
| 87 | 90 | |
|---|
| 88 | 91 | void audit_net_cb(struct audit_buffer *ab, void *va); |
|---|
| .. | .. |
|---|
| 103 | 106 | int aa_sock_file_perm(struct aa_label *label, const char *op, u32 request, |
|---|
| 104 | 107 | struct socket *sock); |
|---|
| 105 | 108 | |
|---|
| 109 | +int apparmor_secmark_check(struct aa_label *label, char *op, u32 request, |
|---|
| 110 | + u32 secid, struct sock *sk); |
|---|
| 111 | + |
|---|
| 106 | 112 | #endif /* __AA_NET_H */ |
|---|