Skip to content

Questions regarding generated CIL of /home/<user> subdirectories #150

@ca-hu

Description

@ca-hu

Hi, I have two questions regarding the generated cil file for a container with bind mount: -v /home/myuser:/home:myuser:rw (using podman).

The generated container json looks like this:

...
               {
                    "Type": "bind",
                    "Source": "/home/myuser",
                    "Destination": "/home/myuser",
                    "Driver": "",
                    "Mode": "",
                    "Options": [
                         "rbind"
                    ],
                    "RW": true,
                    "Propagation": "rprivate"
               },
...

First question:

In this usecase with /home/myuser, the blockinherit home_rw_container is not getting added because subdirectories of /home are not matched i think:

if item["Source"] == HOME_CONTAINER and item["RW"] is True:

Is this intended or a bug?

Second question:

The container-selinux udica templates and udica are only generating rules for user_home_t, user_home_dir_t,home_root_t and not for other home directory types, e.g. cache_home_t or other types that have the user_home_type attribute.

Also for this, is this intended or a bug?

Thanks a lot :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions