mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-01 22:03:09 +00:00
xace: change the semantics of the return value of XACE hooks to allow
arbitrary X status codes instead of just TRUE/FALSE. The dix layer in most cases still does not propagate the return value of XACE hooks back to the client, however. There is more error propagation work to do.
This commit is contained in:
parent
47bd311e3d
commit
9cee4ec5e6
14 changed files with 256 additions and 254 deletions
12
Xext/xace.h
12
Xext/xace.h
|
|
@ -20,10 +20,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#ifndef _XACE_H
|
||||
#define _XACE_H
|
||||
|
||||
/* Hook return codes */
|
||||
#define XaceErrorOperation 0
|
||||
#define XaceAllowOperation 1
|
||||
#define XaceIgnoreOperation 2
|
||||
/* Special value used for ignore operation. This is a deprecated feature
|
||||
* only for Security extension support. Do not use in new code.
|
||||
*/
|
||||
#define XaceIgnoreError BadRequest
|
||||
|
||||
#ifdef XACE
|
||||
|
||||
|
|
@ -97,10 +97,10 @@ extern void XaceCensorImage(
|
|||
/* Define calls away when XACE is not being built. */
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define XaceHook(args...) XaceAllowOperation
|
||||
#define XaceHook(args...) Success
|
||||
#define XaceCensorImage(args...) { ; }
|
||||
#else
|
||||
#define XaceHook(...) XaceAllowOperation
|
||||
#define XaceHook(...) Success
|
||||
#define XaceCensorImage(...) { ; }
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue