#include #include #include #include static unsigned dir_class[] = { #include ~0U }; static unsigned read_class[] = { #include ~0U }; static unsigned write_class[] = { #include ~0U }; static unsigned chattr_class[] = { #include ~0U }; static unsigned signal_class[] = { #include ~0U }; int audit_classify_arch(int arch) { if (audit_is_compat(arch)) return 1; else return 0; } int audit_classify_syscall(int abi, unsigned syscall) { if (audit_is_compat(abi)) return audit_classify_compat_syscall(abi, syscall); switch(syscall) { #ifdef __NR_open case __NR_open: return 2; #endif #ifdef __NR_openat case __NR_openat: return 3; #endif #ifdef __NR_socketcall case __NR_socketcall: return 4; #endif #ifdef __NR_execveat case __NR_execveat: #endif case __NR_execve: return 5; default: return 0; } } static int __init audit_classes_init(void) { #ifdef CONFIG_AUDIT_COMPAT_GENERIC audit_register_class(AUDIT_CLASS_WRITE_32, compat_write_class); audit_register_class(AUDIT_CLASS_READ_32, compat_read_class); audit_register_class(AUDIT_CLASS_DIR_WRITE_32, compat_dir_class); audit_register_class(AUDIT_CLASS_CHATTR_32, compat_chattr_class); audit_register_class(AUDIT_CLASS_SIGNAL_32, compat_signal_class); #endif audit_register_class(AUDIT_CLASS_WRITE, write_class); audit_register_class(AUDIT_CLASS_READ, read_class); audit_register_class(AUDIT_CLASS_DIR_WRITE, dir_class); audit_register_class(AUDIT_CLASS_CHATTR, chattr_class); audit_register_class(AUDIT_CLASS_SIGNAL, signal_class); return 0; } __initcall(audit_classes_init); 7f32437b530d5bb7cb916142fa'>refslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-09 17:46:30 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-09 17:46:30 -0800
commit3d88460dbd285e7f32437b530d5bb7cb916142fa (patch)
tree3cc4f479bb3813bb4804f5ed4d52a493003c9fa5 /drivers/usb/host/fsl-mph-dr-of.c
parent55aac6ef53e114c28170ee3f79065cfa8ca9cf3f (diff)
parent697d3a21615672b2bf7724a65755799260325dda (diff)
Merge tag 'drm-fixes-for-v4.10-rc8' of git://people.freedesktop.org/~airlied/linux
Pull drm fixes from Dave Airlie: "This should be the final set of drm fixes for 4.10: one vmwgfx boot fix, one vc4 fix, and a few i915 fixes: * tag 'drm-fixes-for-v4.10-rc8' of git://people.freedesktop.org/~airlied/linux: drm: vc4: adapt to new behaviour of drm_crtc.c drm/i915: Always convert incoming exec offsets to non-canonical drm/i915: Remove overzealous fence warn on runtime suspend drm/i915/bxt: Add MST support when do DPLL calculation drm/i915: don't warn about Skylake CPU - KabyPoint PCH combo drm/i915: fix i915 running as dom0 under Xen drm/i915: Flush untouched framebuffers before display on !llc drm/i915: fix use-after-free in page_flip_completed() drm/vmwgfx: Fix depth input into drm_mode_legacy_fb_format
Diffstat (limited to 'drivers/usb/host/fsl-mph-dr-of.c')