Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cbuild: Avoid permission denied error due to SElinux #986

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions buildlib/cbuild
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ def cmd_make(args):

home = os.path.join(os.path.sep,"home",os.getenv("LOGNAME"));

dirs = [os.getcwd(),"/tmp"];
dirs = [os.getcwd()];
# Import the symlink target too if BUILD is a symlink
BUILD_r = os.path.realpath(BUILD);
if not BUILD_r.startswith(os.path.realpath(SRC)):
Expand Down Expand Up @@ -1008,9 +1008,12 @@ def cmd_make(args):
"-e","HOME=%s"%(home),
"-w",BUILD_r,
];

opts.append("-v");
opts.append("/tmp:/tmp");
for I in dirs:
opts.append("-v");
opts.append("%s:%s"%(I,I));
opts.append("%s:%s:Z"%(I,I));
for I in cmake_envs:
opts.append("-e");
opts.append(I);
Expand Down