![]() ![]() ![]() ![]() ![]() * * Called with rcu_read_lock, creds are safe */ static bool set_one_prio_perm ( struct task_struct * p ) /* * Unprivileged users may change the real uid to the effective uid * or vice versa. as such, this is needed on all architectures */ int fs_overflowuid = DEFAULT_FS_OVERFLOWUID int fs_overflowgid = DEFAULT_FS_OVERFLOWGID EXPORT_SYMBOL ( fs_overflowuid ) EXPORT_SYMBOL ( fs_overflowgid ) /* * Returns true if current's euid is same as p's uid or euid, * or has CAP_SYS_NICE to p's user_ns. an Object Identifier (OID) with a length of 1, the length of the input was not validated to contain enough bytes for the OID and the x509_note_OID function was given an out-of-bounds pointer and incorrect size.// SPDX-License-Identifier: GPL-2.0 /* * linux/kernel/sys.c * * Copyright (C) 1991, 1992 Linus Torvalds */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /* Move somewhere else to avoid recompiling? */ #include #include #include #include #include " uid16.h" #ifndef SET_UNALIGN_CTL # define SET_UNALIGN_CTL(a, b) (- EINVAL) #endif #ifndef GET_UNALIGN_CTL # define GET_UNALIGN_CTL(a, b) (- EINVAL) #endif #ifndef SET_FPEMU_CTL # define SET_FPEMU_CTL(a, b) (- EINVAL) #endif #ifndef GET_FPEMU_CTL # define GET_FPEMU_CTL(a, b) (- EINVAL) #endif #ifndef SET_FPEXC_CTL # define SET_FPEXC_CTL(a, b) (- EINVAL) #endif #ifndef GET_FPEXC_CTL # define GET_FPEXC_CTL(a, b) (- EINVAL) #endif #ifndef GET_ENDIAN # define GET_ENDIAN(a, b) (- EINVAL) #endif #ifndef SET_ENDIAN # define SET_ENDIAN(a, b) (- EINVAL) #endif #ifndef GET_TSC_CTL # define GET_TSC_CTL(a) (- EINVAL) #endif #ifndef SET_TSC_CTL # define SET_TSC_CTL(a) (- EINVAL) #endif #ifndef GET_FP_MODE # define GET_FP_MODE(a) (- EINVAL) #endif #ifndef SET_FP_MODE # define SET_FP_MODE(a,b) (- EINVAL) #endif #ifndef SVE_SET_VL # define SVE_SET_VL(a) (- EINVAL) #endif #ifndef SVE_GET_VL # define SVE_GET_VL() (- EINVAL) #endif #ifndef SME_SET_VL # define SME_SET_VL(a) (- EINVAL) #endif #ifndef SME_GET_VL # define SME_GET_VL() (- EINVAL) #endif #ifndef PAC_RESET_KEYS # define PAC_RESET_KEYS(a, b) (- EINVAL) #endif #ifndef PAC_SET_ENABLED_KEYS # define PAC_SET_ENABLED_KEYS(a, b, c) (- EINVAL) #endif #ifndef PAC_GET_ENABLED_KEYS # define PAC_GET_ENABLED_KEYS(a) (- EINVAL) #endif #ifndef SET_TAGGED_ADDR_CTRL # define SET_TAGGED_ADDR_CTRL(a) (- EINVAL) #endif #ifndef GET_TAGGED_ADDR_CTRL # define GET_TAGGED_ADDR_CTRL() (- EINVAL) #endif #ifndef RISCV_V_SET_CONTROL # define RISCV_V_SET_CONTROL(a) (- EINVAL) #endif #ifndef RISCV_V_GET_CONTROL # define RISCV_V_GET_CONTROL() (- EINVAL) #endif /* * this is where the system-wide overflow UID and GID are defined, for * architectures that now have 32-bit UID/GID but didn't in the past */ int overflowuid = DEFAULT_OVERFLOWUID int overflowgid = DEFAULT_OVERFLOWGID EXPORT_SYMBOL ( overflowuid ) EXPORT_SYMBOL ( overflowgid ) /* * the same as above, but for filesystems which can only store a 16-bit * UID and GID. Thus, when the last bytes of the test input were 06 01, i.e. In the ASN.1 decoder code shown below, we can see that the length check is only performed when the multi-byte format is used and the 0x80 bit is set in the length field. However, when the length is 127 bytes or less, the length can be directly encoded into the one-byte length field. The top bit of the length field, 0x80, is set to indicate that the length is encoded using the multi-byte format. When an item in the ASN.1 specification is longer than 127 bytes, the length is encoded into the following N bytes and the length field is used to specify how many bytes contain the input’s length. Looking through the ASN.1 decoder’s code, it quickly becomes clear that the length check is only performed when using a multi-byte ASN.1 length specification. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |