Browse Source

Improved qsheff to set the right permissions without a postinstall - chmod has to be done after chown when SUID

early
Alejandro Mery 17 years ago
parent
commit
506dbc2816
2 changed files with 5 additions and 19 deletions
  1. +5
    -0
      mail/qsheff/qsheff.conf
  2. +0
    -19
      mail/qsheff/qsheff.postinstall

+ 5
- 0
mail/qsheff/qsheff.conf

@ -41,3 +41,8 @@ qsheff_create_var() {
mkdir -p $root$datadir/{backup,quarantine}/{0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,x}
}
hook_add postmake 5 'qsheff_permissions'
qsheff_permissions() {
chown -v root:21 $root$bindir/qsheff
chmod -v 4511 $root$bindir/qsheff
}

+ 0
- 19
mail/qsheff/qsheff.postinstall

@ -1,19 +0,0 @@
#!/bin/sh
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../qsheff/qsheff.postinstall
# Copyright (C) 2006 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
echo "Fixing permissions of qsheff..."
chmod -v 4511 D_bindir/qsheff
chown -v root:qmail D_bindir/qsheff

Loading…
Cancel
Save