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

Two sepolicy API improvements #746

Closed
wants to merge 2 commits into from

Conversation

cgwalters
Copy link
Member

Split out of #741

@rh-atomic-bot
Copy link

☔ The latest upstream changes (presumably e665e51) made this pull request unmergeable. Please resolve the merge conflicts.

I'm porting other code away from `GFile`, and while we don't use this
internally, it will let us do so at a later date. I'm averse to changing the
code right now as we don't have good CI coverage of this.
Use `g_auto()` more sanely with a struct implmenting the "is initialized"
pattern.  This is way less ugly for callers, and fixes bugs like
us calling `setfscreatecon()` even if an error occurred beforehand.

Also fold in the logic for "NULL or not loaded" sepolicy into the setup rather
than requiring callers to inline it.

Prep for more users of this function.
@cgwalters
Copy link
Member Author

🏄 Rebased

@jlebon
Copy link
Member

jlebon commented Mar 22, 2017

Code looks good. The flakes are really starting to get cumbersome though. I opened #751 for that.

@rh-atomic-bot r+ a76ddc3

@rh-atomic-bot
Copy link

⌛ Testing commit a76ddc3 with merge 7b2370d...

rh-atomic-bot pushed a commit that referenced this pull request Mar 22, 2017
Use `g_auto()` more sanely with a struct implmenting the "is initialized"
pattern.  This is way less ugly for callers, and fixes bugs like
us calling `setfscreatecon()` even if an error occurred beforehand.

Also fold in the logic for "NULL or not loaded" sepolicy into the setup rather
than requiring callers to inline it.

Prep for more users of this function.

Closes: #746
Approved by: jlebon
@rh-atomic-bot
Copy link

☀️ Test successful - status-atomicjenkins
Approved by: jlebon
Pushing 7b2370d to master...

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.

3 participants