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

Better ACLs handling #260

Merged
merged 3 commits into from Jul 1, 2013
Merged

Better ACLs handling #260

merged 3 commits into from Jul 1, 2013

Conversation

Arakmar
Copy link
Contributor

@Arakmar Arakmar commented Jun 27, 2013

This merge request intents to fix and improve Rear handling of ACLs

1. Regression fix

First, there is a commit which fix a regression introduced by 2d54454 (in 13_include_fs_code).

As I already explained, tune2fs options parsing is broken because the field separator in disklayout.conf is a space.
Also, a comma as separator is a non sense because multiple options must be keep together (eg: default_mount_options)

2. Default mount options saving (dependent of the previous commit)

In RHEL, the default installer behaviour on EXT* FS is to keep the acl mount option as a default mount option.

So, this commit fix that by saving them in disklayout.conf and then restoring them in the same way as the other tune2fs options.

3. Copy of users and groups

I added a new variable (CLONE_ALL_USERS_GROUPS) to allow the end user to use all its users and groups on the rescue media. Of course, it overrides CLONE_USERS and CLONE_GROUPS if defined to y. By default it's set to n, so it's the current behaviour.
Only users not already in the Rear default passwd/group files are copied.

An option like that can be usefull in the case of ACLs defined for local users which can't be restored whithout the user defined ("cannot acl from text" error)

A comma as IFS is irrelevant because we need options separated by comma
in one block. (eg : default_mount_options)
Also, it breaks the loop because spaces are used as separator in
disklayout.conf.
It's usefull in the case we want to restore ACL of all users.
gdha added a commit that referenced this pull request Jul 1, 2013
@gdha gdha merged commit 0287df2 into rear:master Jul 1, 2013
@ghost ghost assigned gdha Jul 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adaptions and new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants