[augeas-devel] [Augeas] #124: Sudoers lens does not allow for escaped spaces in user/group names
Augeas
trac at fedorahosted.org
Thu Jul 1 16:08:13 UTC 2010
#124: Sudoers lens does not allow for escaped spaces in user/group names
--------------------+-------------------------------------------------------
Reporter: jimi | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: 0.7.0
Keywords: |
--------------------+-------------------------------------------------------
When the augeas lens for sudoers encounters a user/group name that has
escaped spaces, it does not parse the line correctly. For example, this
causes problems:
@my\ admin\ group ALL=(ALL) NOPASSD: ALL
In my testing, the token "admin" would end up being the saved in the host
list, causing the rest of the line to fail parsing.
I was able to get correct parsing with the following diff applied, however
I'm not sure if this would have any further repurcusions:
--- /usr/share/augeas/lenses/dist/sudoers.aug.orig 2010-05-20
12:08:31.000000000 -0400
+++ /usr/share/augeas/lenses/dist/sudoers.aug 2010-05-20
12:15:18.000000000 -0400
@@ -91,7 +91,7 @@ There could be a \ in the middle of a co
let sto_to_com = store /([^,=:#() \t\n\\\\][^,=:#()\n]*[^,=:#()
\t\n\\\\])|[^,=:#() \t\n\\\\]/
(* Variable: sto_to_com_user *)
-let sto_to_com_user = store ( /[^,=:#()\t\n]+/
+let sto_to_com_user = store ( /[^,=:#() \t\n]+/
- /(User|Runas|Host|Cmnd)_Alias|Defaults.*/
)
(* Variable: sto_to_com_col *)
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/124>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list