Usergen#151
Open
ballock wants to merge 1 commit into
Open
Conversation
The logic is: 1. Generate name-id pairs required by droid layer to droid.ids. 2. On installation create all the required user and groups and note their names and ids to droid.ids.created. 3. On update cross-check the two files and only add and remove the name-ids that have been changed. ad. 1. usergroupgen.c no longer creates shellscript output, instead it creates droid.ids which is a simple text file with name-space-id format, one per line. ad. 2. postinstall script writes down every name-id it managed to create. It does not write any user creation of which failed. ad. 3. it is not verified during user/group removal if the user/group was modified by the user or with a third-party script. If the entry disappeared from droid-hal, we just remove it. Special note: A conversion mechanism was added for upgrades from previous dhd releases in the preinstall script. All users that were added in the previous release are considered to have been created. Change-Id: I2a13462bed5297f3c4ef601fcd26194c59444a3f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The logic is:
ad. 1. usergroupgen.c no longer creates shellscript output, instead it creates
droid.ids which is a simple text file with name-space-id format, one per line.
ad. 2. postinstall script writes down every name-id it managed to create. It
does not write any user creation of which failed.
ad. 3. it is not verified during user/group removal if the user/group was
modified by the user or with a third-party script. If the entry disappeared
from droid-hal, we just remove it.
Special note: A conversion mechanism was added for upgrades from previous dhd
releases in the preinstall script. All users that were added in the previous
release are considered to have been created.