Closed iamwudy closed 1 year ago
Thanks for your patch, Please add prefix(ksmbd: ) in patch subject, need to add patch description. Please refer other commits in ksmbd-tools.(https://github.com/cifsd-team/ksmbd-tools/commits/master)
I have changed the title and the description. Is anything else should be adjusted?
Ah... You need to change it in your patch, not PR.
@iamwudy, @namjaejeon,
Would you consider the following approach instead of commit fefa793?
@iamwudy Can you give ack for @atheik 's change ?
I agree with @atheik 's change. It solve a problem that my parse_list() can only deal with valid users/invalid users/read list/write list/admin users. But parse_list() need deal with hosts_allow and hosts_deny too, both them don't have @-syntax. Well done!
@iamwudy,
Thanks for the approval. My approach does disable @
for hosts lists, that's true, but hosts allow
and hosts deny
do not work at all. parse_list()
only supports lists of users and my patch doesn't change that.
@atheik @iamwudy I have applied Atte's patch to mainline. Thanks for your work!
@namjaejeon,
@atheik @iamwudy I have applied Atte's patch to mainline.
You lost the author information when you resolved conflicts in commit 736454f.
You lost the author information when you resolved conflicts in commit https://github.com/cifsd-team/ksmbd-tools/commit/736454faea32b53f97dc395b4be6382f826b2e28.
Sorry, I have recreate the patch because there is some hunk failed on the latest mainline. I have fixed it. Thanks for your report!
This patch was applied, Close this PR. Thanks for your work!
This commit add the feature that you can use "@groupname" in valid users/invalid users/read list/write list/admin users in ksmbd.conf when you want to add all users in this group, as samba do in smb.conf.
To reach this, some codes moved form parse_list() to cp_insert_user(), and a new function cp_insert_user_group() was added. cp_insert_user_group() scans the file "/etc/group" to find the user list of the group, and than calls cp_insert_user() for each of those users.
After those changes, parse_list() now can correctly deal with "@groupname", not trying to add a user named "@groupname".
Signed-off-by: Wang Junjie iamwudy@qq.com