Skip to content

rootless: allow to override policy.json by the user#1336

Closed
giuseppe wants to merge 1 commit intocontainers:masterfrom
giuseppe:rootless-set-policy-path
Closed

rootless: allow to override policy.json by the user#1336
giuseppe wants to merge 1 commit intocontainers:masterfrom
giuseppe:rootless-set-policy-path

Conversation

@giuseppe
Copy link
Member

Signed-off-by: Giuseppe Scrivano [email protected]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better to do a single lookup for $HOME and use that both here and below

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not specific to this PR, but XDG_CONFIG_HOME should be honored

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes good idea, pushed an updated version

@giuseppe giuseppe force-pushed the rootless-set-policy-path branch from 990ebdd to 80027a6 Compare August 24, 2018 13:04
@mheon
Copy link
Member

mheon commented Aug 24, 2018

LGTM

@mheon
Copy link
Member

mheon commented Aug 24, 2018

@TomSweeneyRedHat
Copy link
Member

Looks like travis needs to be kicked again for this.

if _, err := os.Stat(newPath); err == nil {
runtime.config.SignaturePolicyPath = newPath
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we error out here if runtime.config.SignaturePolicyPath == "" by the end of this if statement? I think yes, but could be convinced otherwise.

@mheon
Copy link
Member

mheon commented Aug 24, 2018

@rh-atomic-bot r+

@rh-atomic-bot
Copy link
Collaborator

📌 Commit 80027a6 has been approved by mheon

@rh-atomic-bot
Copy link
Collaborator

⌛ Testing commit 80027a6 with merge 3473701...

@rh-atomic-bot
Copy link
Collaborator

☀️ Test successful - status-papr
Approved by: mheon
Pushing 3473701 to master...

@giuseppe giuseppe deleted the rootless-set-policy-path branch September 21, 2018 08:26
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 27, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants