Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
fae5dbde
Commit
fae5dbde
authored
Jul 19, 2019
by
Victor Kotlyar
Browse files
Add permition and capability restrictions to cta-tape-label rpm.
parent
f9249bb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
cta.spec.in
View file @
fae5dbde
...
@@ -123,9 +123,6 @@ The tape server daemon
...
@@ -123,9 +123,6 @@ The tape server daemon
%attr(0644,root,root) %config(noreplace) /etc/sysconfig/cta-taped
%attr(0644,root,root) %config(noreplace) /etc/sysconfig/cta-taped
%attr(0644,root,root) %config(noreplace) /etc/systemd/system/cta-taped.service
%attr(0644,root,root) %config(noreplace) /etc/systemd/system/cta-taped.service
%attr(0644,root,root) %doc /usr/share/man/man1/cta-tape-label.1cta.gz
%attr(0755,root,root) %{_bindir}/cta-tape-label
%post -n cta-taped
%post -n cta-taped
%systemd_post cta-taped.service
%systemd_post cta-taped.service
%systemdDaemonReload
%systemdDaemonReload
...
@@ -355,13 +352,16 @@ The client of the Remote Media Changer Daemon (rmcd)
...
@@ -355,13 +352,16 @@ The client of the Remote Media Changer Daemon (rmcd)
Summary: The command-line tool for pre-labelling a CTA tape.
Summary: The command-line tool for pre-labelling a CTA tape.
Group: Application/CTA
Group: Application/CTA
Requires: cta-lib = %{version}-%{release}
Requires: cta-lib = %{version}-%{release}
Requires(post): /usr/sbin/setcap
%description -n cta-tape-label
%description -n cta-tape-label
CERN Tape Archive:
CERN Tape Archive:
The command-line tool for pre-labelling a CTA tape.
The command-line tool for pre-labelling a CTA tape.
%files -n cta-tape-label
%files -n cta-tape-label
%defattr(-,root,root)
%defattr(-,root,root)
%attr(075
5,root,root
) %{_bindir}/cta-tape-label
%attr(075
0,cta,tape
) %{_bindir}/cta-tape-label
%attr(0644,root,root) %doc /usr/share/man/man1/cta-tape-label.1cta.gz
%attr(0644,root,root) %doc /usr/share/man/man1/cta-tape-label.1cta.gz
%post -n cta-tape-label
/usr/sbin/setcap cap_sys_rawio+ep %{_bindir}/cta-tape-label
%package -n cta-common
%package -n cta-common
Summary: CERN Tape Archive common items
Summary: CERN Tape Archive common items
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment