Add stub headers for Linux kernel interfaces that ext4 code expects: - capability.h: stub capability checks (always return true) - cred.h: stub credential types and macros - file.h: stub file descriptor helpers - path.h: basic path structure definition - security.h: stub LSM hooks (no-ops) - seq_file.h: stub seq_file interface These provide minimal definitions to allow ext4 code to compile. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com>
28 lines
565 B
C
28 lines
565 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* This is <linux/capability.h>
|
|
*
|
|
* Andrew G. Morgan <morgan@kernel.org>
|
|
* Alexander Kjeldaas <astor@guardian.no>
|
|
* with help from Aleph1, Roland Buresund and Andrew Main.
|
|
*
|
|
* Stub definitions for Linux kernel capabilities.
|
|
* U-Boot doesn't implement capability checks.
|
|
*/
|
|
#ifndef _LINUX_CAPABILITY_H
|
|
#define _LINUX_CAPABILITY_H
|
|
|
|
#define CAP_SYS_RESOURCE 24
|
|
|
|
static inline bool capable(int cap)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
static inline bool ns_capable(void *ns, int cap)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
#endif /* _LINUX_CAPABILITY_H */
|