Home_greyopenFATE - openSUSE feature tracking > #313538
Dashboard | Search | Sign up | Login

Please login or register to be able to edit or vote this feature.

Get rid of SuSEconfig.permissions

Feature state

openSUSE Distribution
Done

Description

There is no point to run that code after installation of every package
(and it's not run when you use zypper or 3rd party tools anyways). That
code should be only run as a part of post-install.

Relations

Discussion


icons/user_comment.png L. N. wrote: (5 years ago)

SuSEconfig.permissions already is a noop when called by SuSEconfig. It's needed for compatibility with existing rpm macros though.

icons/user_comment.png A. J. wrote: (5 years ago)

Is it possible to change the existing rpm macros?

icons/user_comment.png A. J. wrote: (5 years ago)

Btw. the only usage in spec files in Factory is:
samba/samba.spec:PreReq: /sbin/conf.d/SuSEconfig.permissions

icons/user_comment.png C. B. wrote: (5 years ago)

I'm quite sure more packages need it, but don't mention it in their dependencies ;-)

On my system, at least postfix and yast2-mail drop some files into /etc/permissions.d/

icons/user_comment.png C. B. wrote: (5 years ago)

It is also needed for being called manually ;-)

A common usecase, at least for me, is:
- add permissions for a file or directory to /etc/permissions.local (typically for files or directories that come within a RPM)
- run SuSEconfig --module permissions to set those permissions

Another usecase (once per system) is
- set PERMISSION_SECURITY="secure local" in /etc/sysconfig/security
- SuSEconfig --module permissions

This should still be somehow possible after the proposed change. I don't care too much if the command is named SuSEconfig or make-me-happy.sh ;-) (as long as the change is documented in the Release Notes), but it should be possible to apply the permissions from /etc/permissions.* with a single command.

icons/user_comment.png L. N. wrote: (5 years ago)

chkstat --system

icons/user_comment.png M. M. wrote: (5 years ago)

Status: everything is basically done already, the file is just left as a NOP to provide compatbility,

icons/user_comment.png T. K. wrote: (5 years ago)

Coolo told me today that a macro is still calling SUSEconfig and not chkstat.

icons/user_comment.png M. M. wrote: (5 years ago)

which macro and where?

FWIW, I just submitted a permissions package without SuSEconfig.permissions.

Last change: 3 years ago
Voting
Score: 1
  • Negative: 0
  • Neutral: 0
  • Positive: 1
Tags
Feature Export
Application-xmlXML   Text-x-logPlaintext   PrinterPrint