openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/systemd/1_242+AUTOINC+db2e367bfc-r0/git/src/nspawn/nspawn-patch-uid.c
static int is_fs_fully_userns_compatible(const struct statfs* sfs)
{

    assert(sfs);

    return F_TYPE_EQUAL(sfs->f_type, BINFMTFS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, CGROUP_SUPER_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, CGROUP2_SUPER_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, DEBUGFS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, DEVPTS_SUPER_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, EFIVARFS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, HUGETLBFS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, MQUEUE_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, PROC_SUPER_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, PSTOREFS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, SELINUX_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, SMACK_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, SECURITYFS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, BPF_FS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, TRACEFS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, SYSFS_MAGIC);
}
/*
 * Check if the filesystem is fully compatible with user namespaces or
 * UID/GID patching. Some filesystems in this list can be fully mounted inside
 * user namespaces, however their inodes may relate to host resources or only
 * valid in the global user namespace, therefore no patching should be applied.
 */
Check if the filesystem is fully compatible with user namespaces or
UID/GID patching. Some filesystems in this list can be fully mounted inside
user namespaces, however their inodes may relate to host resources or only
valid in the global user namespace, therefore no patching should be applied.
Check if the filesystem is fully compatible with user namespaces or UID / GID patching . Some filesystems in this list can be fully mounted inside user namespaces however their inodes may relate to host resources or only valid in the global user namespace therefore no patching should be applied .
static int is_fs_fully_userns_compatible(const struct statfs* sfs)
{
    assert(sfs);
    return F_TYPE_EQUAL(sfs->f_type, BINFMTFS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, CGROUP_SUPER_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, CGROUP2_SUPER_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, DEBUGFS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, DEVPTS_SUPER_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, EFIVARFS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, HUGETLBFS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, MQUEUE_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, PROC_SUPER_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, PSTOREFS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, SELINUX_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, SMACK_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, SECURITYFS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, BPF_FS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, TRACEFS_MAGIC) ||
           F_TYPE_EQUAL(sfs->f_type, SYSFS_MAGIC);
}
static int is_fs_fully_userns_compatible ( const struct statfs * sfs ) { assert ( sfs ) ; return F_TYPE_EQUAL ( sfs -> f_type , BINFMTFS_MAGIC ) || F_TYPE_EQUAL ( sfs -> f_type , CGROUP_SUPER_MAGIC ) || F_TYPE_EQUAL ( sfs -> f_type , CGROUP2_SUPER_MAGIC ) || F_TYPE_EQUAL ( sfs -> f_type , DEBUGFS_MAGIC ) || F_TYPE_EQUAL ( sfs -> f_type , DEVPTS_SUPER_MAGIC ) || F_TYPE_EQUAL ( sfs -> f_type , EFIVARFS_MAGIC ) || F_TYPE_EQUAL ( sfs -> f_type , HUGETLBFS_MAGIC ) || F_TYPE_EQUAL ( sfs -> f_type , MQUEUE_MAGIC ) || F_TYPE_EQUAL ( sfs -> f_type , PROC_SUPER_MAGIC ) || F_TYPE_EQUAL ( sfs -> f_type , PSTOREFS_MAGIC ) || F_TYPE_EQUAL ( sfs -> f_type , SELINUX_MAGIC ) || F_TYPE_EQUAL ( sfs -> f_type , SMACK_MAGIC ) || F_TYPE_EQUAL ( sfs -> f_type , SECURITYFS_MAGIC ) || F_TYPE_EQUAL ( sfs -> f_type , BPF_FS_MAGIC ) || F_TYPE_EQUAL ( sfs -> f_type , TRACEFS_MAGIC ) || F_TYPE_EQUAL ( sfs -> f_type , SYSFS_MAGIC ) ; }
Check if the filesystem is fully compatible with user namespaces or
 UID/GID patching.
Check if the filesystem is fully compatible with user namespaces or UID / GID patching .