Code Monkey home page Code Monkey logo

Comments (4)

cgwalters avatar cgwalters commented on August 14, 2024

Don't use :z; set the file context ahead of time. (Or use :Z but it's saner IMO to set it ahead of time and don't relabel when running).

from coreos-assembler.

cgwalters avatar cgwalters commented on August 14, 2024

https://github.com/cgwalters/sysmgmt-personal/blob/1a80118b5928b16d3a5e2821893b776f52b20a75/vanadium/provision-root.sh#L43

from coreos-assembler.

dustymabe avatar dustymabe commented on August 14, 2024

Don't use :z; set the file context ahead of time.

yep that's what I've been doing. From the readme PR you can see that i propose to use

$ mkdir ./srv-coreos                         
$ setfacl -d -m u:1000:rwx ./srv-coreos      
$ chcon -Rt svirt_sandbox_file_t ./srv-coreos
$ cd ./srv-coreos                            

https://github.com/cgwalters/sysmgmt-personal/blob/1a80118b5928b16d3a5e2821893b776f52b20a75/vanadium/provision-root.sh#L43

cool I think that helps. I see you have chcon system_u:object_r:container_file_t:s0 /var/srv so I think maybe I'm missing the s0 part in my chcon command. Will test that out.

Thanks @cgwalters

from coreos-assembler.

dustymabe avatar dustymabe commented on August 14, 2024

so that didn't seem to help. I did some digging and it seems like the only file that gets the MCS labels are the actual qcows themselves. I wonder if virt-install/libvirt is adding them.

from coreos-assembler.

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.