Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-01-07 10:24:17

0001 /*
0002    This file is part of Valgrind, a dynamic binary instrumentation framework.
0003 
0004    Copyright (C) 2024 Peter Seiderer <ps.report@gmx.net>
0005 
0006    This program is free software; you can redistribute it and/or
0007    modify it under the terms of the GNU General Public License as
0008    published by the Free Software Foundation; either version 2 of the
0009    License, or (at your option) any later version.
0010 
0011    This program is distributed in the hope that it will be useful, but
0012    WITHOUT ANY WARRANTY; without even the implied warranty of
0013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014    General Public License for more details.
0015 
0016    You should have received a copy of the GNU General Public License
0017    along with this program; if not, see <http://www.gnu.org/licenses/>.
0018 
0019    The GNU General Public License is contained in the file COPYING.
0020 */
0021 #ifndef __VKI_LANDLOCK_H
0022 #define __VKI_LANDLOCK_H
0023 
0024 // Derived from linux-6.9.7/include/uapi/linux/landlock.h
0025 struct vki_landlock_ruleset_attr {
0026     __vki_u64 handled_access_fs;
0027     __vki_u64 handled_access_net;
0028 };
0029 
0030 enum vki_landlock_rule_type {
0031     VKI_LANDLOCK_RULE_PATH_BENEATH = 1,
0032     VKI_LANDLOCK_RULE_NET_PORT,
0033 };
0034 
0035 #define VKI_LANDLOCK_CREATE_RULESET_VERSION 1
0036 
0037 #endif