Backport the ability to set the ToS bits on Linux when not running as root.

Normally, we would not backport features into 1.4, but, I was convinced by the
justification supplied by the supplier of this patch.  He pointed out that this
patch removes a requirement for running as root, thus reducing the potential
impacts of security issues.

(closes issue #11742)
Reported by: paravoid
Patches:
      libcap.diff uploaded by paravoid (license 200)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@98265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2008-01-11 18:25:30 +00:00
parent 441b809159
commit 45f3890926
7 changed files with 503 additions and 15 deletions

View File

@@ -62,6 +62,9 @@
/* Define to 1 if you have the `bzero' function. */
#undef HAVE_BZERO
/* Define to indicate the ${CAP_DESCRIP} library */
#undef HAVE_CAP
/* Define to 1 if your system has a working `chown' function. */
#undef HAVE_CHOWN