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

compose: Delete /usr/etc/passwd- (and the other variants) #693

Closed
wants to merge 1 commit into from

Conversation

cgwalters
Copy link
Member

@cgwalters cgwalters commented Mar 17, 2017

There's no point to shipping these backup files in the base tree. We already had
code to delete them for the package layering case where they caused active harm.
At the point we added that code we really should have also changed treecompose
to delete them. Better late than never.

The reason I'm doing this now is because having them in the base tree causes ex livefs to spuriously think that layering a package that doesn't change /etc
as if it does, because the layering code deletes the backup files.

@cgwalters cgwalters force-pushed the compose-delete-lock-files branch from b8eef11 to 11c13ea Compare March 17, 2017 20:48
There's no point to shipping these backup files in the base tree. We already had
code to delete them for the package layering case where they caused active harm.
At the point we added that code we really should have *also* changed treecompose
to delete them. Better late than never.

The reason I'm doing this now is because having them in the base tree causes `ex
livefs` to spuriously think that layering a package that *doesn't* change `/etc`
as if it does, because the layering code deletes the backup files.
@cgwalters cgwalters force-pushed the compose-delete-lock-files branch from 11c13ea to 32a9059 Compare March 17, 2017 21:03
cgwalters added a commit to cgwalters/rpm-ostree that referenced this pull request Mar 18, 2017
Until we land <coreos#693> and it
makes its way into all of our streams.

Necessary for livefs.
@jlebon
Copy link
Member

jlebon commented Mar 20, 2017

@rh-atomic-bot r+ 32a9059

@rh-atomic-bot
Copy link

⌛ Testing commit 32a9059 with merge a05e256...

@rh-atomic-bot
Copy link

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

cgwalters added a commit to cgwalters/rpm-ostree that referenced this pull request Mar 22, 2017
Until we land <coreos#693> and it
makes its way into all of our streams.

Necessary for livefs.
cgwalters added a commit to cgwalters/rpm-ostree that referenced this pull request Mar 22, 2017
Until we land <coreos#693> and it
makes its way into all of our streams.

Necessary for livefs.
rh-atomic-bot pushed a commit that referenced this pull request Mar 22, 2017
Until we land <#693> and it
makes its way into all of our streams.

Necessary for livefs.

Closes: #698
Approved by: jlebon
miabbott added a commit to miabbott/atomic-host-tests that referenced this pull request Jun 13, 2017
New composes done with `rpm-ostree` will have the backups of the
`passwd` removed, per coreos/rpm-ostree#693.  This will cause
the `selinux_verify` role to fail.

Since we are already checking the primary file, consensus says that
it is safe to remove the checks on that particular backup, as well
as the other backups of `group`, `shadow`, and `gshadow`.
miabbott pushed a commit to projectatomic/atomic-host-tests that referenced this pull request Jun 13, 2017
New composes done with `rpm-ostree` will have the backups of the
`passwd` removed, per coreos/rpm-ostree#693.  This will cause
the `selinux_verify` role to fail.

Since we are already checking the primary file, consensus says that
it is safe to remove the checks on that particular backup, as well
as the other backups of `group`, `shadow`, and `gshadow`.
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