trifectatechfoundation / sudo-rs

A memory safe implementation of sudo and su.
Other
2.9k stars 79 forks source link

sudoers: should reject more keywords in alias name position #700

Open japaric opened 1 year ago

japaric commented 1 year ago

relevant tests https://github.com/memorysafety/sudo-rs/blob/e43a5f00d2c7663b3369ab935f931c360fd70eee/test-framework/sudo-compliance-tests/src/sudoers/runas_alias.rs#L426 https://github.com/memorysafety/sudo-rs/blob/e43a5f00d2c7663b3369ab935f931c360fd70eee/test-framework/sudo-compliance-tests/src/sudoers/host_alias.rs#L248 https://github.com/memorysafety/sudo-rs/blob/e43a5f00d2c7663b3369ab935f931c360fd70eee/test-framework/sudo-compliance-tests/src/sudoers/cmnd_alias.rs#L451 https://github.com/memorysafety/sudo-rs/blob/e43a5f00d2c7663b3369ab935f931c360fd70eee/test-framework/sudo-compliance-tests/src/sudoers/user_list.rs#L377