Project

General

Profile

Actions

User story #14514

closed

User story #12271: Generic method to set POSIX ACL

Add a generic method to add ACLs on a given file

Added by Félix DALLIDET almost 6 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Generic methods
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Reviewed
Fix check:
Checked
Regression:

Description

This GM should be able to add aces to a given file or set of file, without impacting the already defined other aces.

The "path" parameter will support the regex type defined here: https://docs.cfengine.com/docs/3.13/reference-functions-findfiles.html
Each file will have a dedicated line in the reporting but only one global report will be send.
Ex: /tmp/myDir/* will apply to every file and directory in /tmp/myDir

The current syntax for user or group ace must respect the format: $|[A-z0-9._-]+:[+-]r?w?x?$
Ex: myuser:+rwx, mystupidUser:-rwx
Syntax for "other" must respect the format: $|[+-]r?w?x?

Each parameter left blank will have no effect on the file.
Default mode for the recursivity will be "false".

It can be recursive or not, but can not modify the "default" ACLs of a given directory.

Actions #1

Updated by Félix DALLIDET almost 6 years ago

  • Status changed from New to In progress
  • Assignee set to Félix DALLIDET
Actions #2

Updated by Vincent MEMBRÉ almost 6 years ago

  • Subject changed from Add a generic method to add ACEs on a given file to Add a generic method to add ACLs on a given file
Actions #3

Updated by Félix DALLIDET almost 6 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Félix DALLIDET to Nicolas CHARLES
  • Pull Request set to https://github.com/Normation/ncf/pull/939
Actions #4

Updated by Félix DALLIDET almost 6 years ago

  • Parent task set to #12271
Actions #5

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.9 to 5.0.10
Actions #6

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.10 to 5.0.11
Actions #7

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 5.0.11 to 5.0.12
Actions #8

Updated by Félix DALLIDET over 5 years ago

  • Status changed from Pending technical review to Pending release
Actions #9

Updated by Vincent MEMBRÉ over 5 years ago

  • Name check set to To do
Actions #10

Updated by Vincent MEMBRÉ over 5 years ago

  • Fix check set to To do
Actions #11

Updated by Alexis Mousset over 5 years ago

  • Name check changed from To do to Reviewed
Actions #12

Updated by Nicolas CHARLES over 5 years ago

  • Fix check changed from To do to Checked
Actions #13

Updated by Vincent MEMBRÉ over 5 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 5.0.12 which was released today.

Actions

Also available in: Atom PDF