Skip to content

Commit

Permalink
net-im/ejabberd: Reapply read bit on epam wrapper
Browse files Browse the repository at this point in the history
sfperms drops read bit from files with suid. Reapply it.

Gentoo-Bug: 592218
  • Loading branch information
aidecoe committed Aug 27, 2016
1 parent cce0a3a commit b0275c3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions net-im/ejabberd/ejabberd-16.04-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,12 @@ pkg_postinst() {
if ! ejabberd_cert_exists; then
ejabberd_cert_install
fi

if use pam; then
# sfperms drops read bit from files with suid. Reapply it.
# Fix bug #592218.
local epam_path="$(get_ejabberd_path)/priv/bin/epam"
chmod g+r "${EROOT%/}${epam_path}" \
|| die "failed to correct ${epam_path} permissions"
fi
}

0 comments on commit b0275c3

Please sign in to comment.