Skip to content

ENT-5986: LMDB files are now created with correct permissions and group ownership (3.15)#4188

Closed
craigcomstock wants to merge 1 commit intocfengine:3.15.xfrom
craigcomstock:ENT-5986/3.15.x
Closed

ENT-5986: LMDB files are now created with correct permissions and group ownership (3.15)#4188
craigcomstock wants to merge 1 commit intocfengine:3.15.xfrom
craigcomstock:ENT-5986/3.15.x

Conversation

@craigcomstock
Copy link
Copy Markdown
Contributor

When run as privileged user LMDB files will be created with
system group matching MPF body perms system_owned().

When un-privileged, no change in group will be made.

In both cases permissions will be 0600 as expected by MPF
cfe_internal/enterprise/CFE_knowledge.cf.

Ticket: ENT-5986
Changelog: Title
(cherry picked from commit 079d333a48c03d4bcd4a3ded7b7eede07e91759c)

Conflicts: libntech

@craigcomstock craigcomstock added the WIP Work in Progress label May 19, 2020
@olehermanse olehermanse changed the title LMDB files are now created with correct permissions and group ownership LMDB files are now created with correct permissions and group ownership (3.15) May 19, 2020
@craigcomstock
Copy link
Copy Markdown
Contributor Author

This PR depends on 3.15.x libntech update PR here: #4190

Copy link
Copy Markdown
Member

@olehermanse olehermanse left a comment

Choose a reason for hiding this comment

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

@craigcomstock 3.15 is now up to date with libntech master. Please remove the commit which updates libntech and rebase on latest 3.15.x

@craigcomstock craigcomstock force-pushed the ENT-5986/3.15.x branch 4 times, most recently from 897ba22 to d23f74e Compare May 22, 2020 21:12
@olehermanse olehermanse requested review from olehermanse and vpodzime and removed request for olehermanse and vpodzime May 26, 2020 14:31
@olehermanse olehermanse dismissed their stale review May 26, 2020 14:32

Addressed.

When run as privileged user LMDB files will be created with
system group matching MPF body perms system_owned().

When un-privileged, no change in group will be made.

In both cases permissions will be 0600 as expected by MPF
cfe_internal/enterprise/CFE_knowledge.cf.

Ticket: ENT-5986
Changelog: Title
(cherry picked from commit 079d333a48c03d4bcd4a3ded7b7eede07e91759c)

Conflicts: libntech
@craigcomstock
Copy link
Copy Markdown
Contributor Author

@cf-bottom jenkins with exotics please

@cf-bottom
Copy link
Copy Markdown

Alright, I triggered a build:

Build Status

(with exotics)

Jenkins: https://ci.cfengine.com/job/pr-pipeline/5166/

Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-5166/

@olehermanse olehermanse changed the title LMDB files are now created with correct permissions and group ownership (3.15) ENT-5986: LMDB files are now created with correct permissions and group ownership (3.15) May 26, 2020
Copy link
Copy Markdown
Contributor

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

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

Looks good to me otherwise.

Comment thread libpromises/dbm_lmdb.c
@craigcomstock
Copy link
Copy Markdown
Contributor Author

will not use this strategy, instead waiting on results of cfengine/masterfiles#1768

@craigcomstock craigcomstock deleted the ENT-5986/3.15.x branch June 1, 2020 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WIP Work in Progress

Development

Successfully merging this pull request may close these issues.

4 participants