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

disable #include (new branch) #4

Open
wants to merge 1 commit into
base: dcpu16
Choose a base branch
from

Conversation

mgranberry
Copy link
Member

This patch disables all file-reading preprocessor directives (that I know of) to improve security for the online clang instance.

@krasin
Copy link
Contributor

krasin commented Apr 20, 2012

Testing...

@krasin
Copy link
Contributor

krasin commented Apr 20, 2012

It appears that Clang tests are broken, see #5.
I will fix them tomorrow and merge this CL.

In the unlikely case that I would forget about it, please, ping me.

@krasin
Copy link
Contributor

krasin commented Apr 20, 2012

I have sent a fix for #5 (see #6).

Regarding to this CL: I have thought a bit and it seems that instead of maintaining a branch for this feature, it would be better to put it behind a flag, like -disable-include-directive or something like that.

@yrrebnarg Do you think it's a good idea? Would it be more convenient to you than two different DCPU16 Clangs (from dcpu16 and online branches)? If yes, I'm fine to implement a flag and adapt your patch.

@krasin
Copy link
Contributor

krasin commented Apr 20, 2012

In the long term, I think that using seccomp "mode 2" is the preferred way to isolate Clang from the rest of the system. Ubuntu 12.04 already supports it and the upstream kernel will hopefully get it in 3.5.

@mgranberry
Copy link
Member Author

I agree that maintaining a separate branch seems like a lot of work. I'm personally comfortable leaving a cross-compiling Clang running in an empty chrooted jail.

On Friday, April 20, 2012 at 5:28 PM, krasin wrote:

In the long term, I think that using seccomp "mode 2" is the preferred way to isolate Clang from the rest of the system. Ubuntu 12.04 already supports it and the upstream kernel will hopefully get it in 3.5.


Reply to this email directly or view it on GitHub:
#4 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants