Question

Can I control the permission with which SCons creates its hardlinks in the CacheDir?

I create the CacheDir using the correct permissions (a specific group) but the files which scons generates inside of it get incorrect (same as my username) group id gid.

I'm sitting on Linux x86_64 (CentOS 6).

I've tried calling both

os.setgid(grp.getgrnam("the_correct_groupname"))

and

os.setegid(grp.getgrnam("the_correct_groupname"))

but they both fail with

OSError: Operation not permitted

What to do?

Was it helpful?

Solution

Try creating your cache directory with the sticky bit.

However, as far as I'm aware, SCons copies files into and out of the cache directory, it doesn't create hard links, so as long as they are readable by the people who need to read them, that should be enough.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top