Code Monkey home page Code Monkey logo

Comments (4)

freedom1b2830 avatar freedom1b2830 commented on June 26, 2024

Apparently you did not understand me.

The problem is not that chromium_t doesn't have 'self:user_namespace create;'
and the problem is that I can't build a module with that permission

F_MAKE is :

export REFMAKE=/usr/share/selinux/$(sestatus |grep Load|grep --color -Ei "[ ]{2,}.*" -o|grep -Eio "[a-z0-9].*")/include/Makefile

#REFMAKE is /usr/share/selinux/refpolicy-freedom1b2830-1677953396/include/Makefile

F_MAKE(){
   make -f $REFMAKE $1.pp && semodule -i $1.pp
}

EEE.te

policy_module(EEE, 1.0)

require {
        type chromium_t;
        class user_namespace create;
}

#============= chromium_t ==============
allow chromium_t self:user_namespace create;

cmd:F_MAKE EEE

Compiling refpolicy-freedom1b2830-1677953396 EEE module
Creating refpolicy-freedom1b2830-1677953396 EEE.pp policy package
rm tmp/EEE.mod tmp/EEE.mod.fc
Failed to resolve allow statement at /var/lib/selinux/refpolicy-freedom1b2830-1677953396/tmp/modules/400/EEE/cil:3
Failed to resolve AST
semodule:  Failed!

and so on for all domains that require user_namespace

from refpolicy.

freedom1b2830 avatar freedom1b2830 commented on June 26, 2024

UDP: I found the solution in your latest commits.
0e1cc1e
Where can I read more about this permission?

from refpolicy.

pebenito avatar pebenito commented on June 26, 2024

There isn't too much documentation because it is a new check in Linux 6.1. In short, it controls if a domain can create a user namespace. See https://paul-moore.com/blog/d/2022/12/linux_v61.html

from refpolicy.

freedom1b2830 avatar freedom1b2830 commented on June 26, 2024

Thank you. I read it. We close the topic.

from refpolicy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.