Skip to contentSkip to conversation

Drop suffixes?

RFC Chris PeBenito 3 participants 4 messages Mar 24, 2023 – Mar 27, 2023

lore
Share & tools
lore
#0 lore raw

I am considering dropping the suffixes from users, roles, and types. init_t would become init, user_r would become user, etc.

Thoughts?

Signature · 1 line
Chris PeBenito
#1 lore raw
Quoted 4 lines · Chris PeBenito

I am considering dropping the suffixes from users, roles, and types. init_t would become init, user_r would become user, etc.

Thoughts?

One thought I have is: might this in some cases conflict with keywords? i.e. is it technically possible?

If the suffixes have no real use then I would probably drop them, provided that it is technically possible.

I use suffixes in my policy but they are used for templates and they are generally also more descriptive.

Signature · 3 lines
gpg --locate-keys [email protected]
Key fingerprint = FCD2 3660 5D6B 9D27 7FC6  E0FF DA7E 521F 10F6 4098
Dominick Grift
#2 lore raw
In reply to Chris PeBenito
Quoted 2 lines · On Saturday, 25 March 2023 05:10:10 AEDT Chris PeBenito wrote:

I am considering dropping the suffixes from users, roles, and types. init_t would become init, user_r would become user, etc.

Even when the syntax prevents the compiler from being confused there is a benefit to avoiding user confusion. So having user_r:user_t change to user:user would be bad IMHO.

22 years ago this might have been justified by reducing RAM use or something but that doesn't apply now. What's the motivation for this?

Signature · 2 lines
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/
#3 lore raw
Quoted 10 lines · Russell Coker
Quoted 2 lines · On Saturday, 25 March 2023 05:10:10 AEDT Chris PeBenito wrote:

I am considering dropping the suffixes from users, roles, and types. init_t would become init, user_r would become user, etc.

Even when the syntax prevents the compiler from being confused there is a benefit to avoiding user confusion. So having user_r:user_t change to user:user would be bad IMHO.

22 years ago this might have been justified by reducing RAM use or something but that doesn't apply now. What's the motivation for this?

Since refpolicy3 is a major change, I've been reexamining past decisions. Now is the time to make significant changes.

Signature · 1 line
Chris PeBenito