Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37570473
en ru br
ALT Linux repos
S:1.3-alt1

Group :: Development/Other
RPM: rpm-build-kernel-perms

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: rpm-build-kernel-perms
Version: 1.3
Release: alt1

Summary: RPM helper to fix permissions for kernel and modules
License: GPL-2.0-only
Group: Development/Other

Source: %name-%version.tar

Requires: mount
BuildArch: noarch

%description
RPM helper to make kernel and modules readable by user.

%prep
%setup

%install
install -D -p -m 0755 filetrigger %buildroot%_rpmlibdir/%name.filetrigger

%files
%_rpmlibdir/%name.filetrigger

%pre
# Only allow to install inside of hasher.
[ -d /.host -a -d /.in -a -d /.out ] || {
echo >&2 '%name is not allowed outside hasher environments'
exit 1
}

%post
# Fix permissions to boot the installed kernel
find /boot /lib/modules -type f,d \! -perm -444 -print0 | xargs -0r chmod a+rX
chmod a+rwx /lib/modules/*/
control mount unprivileged

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin