selinux/libselinux/src
Christian Göttsche 1eb6229a48 libselinux: check for truncations
Check for truncations when building or copying strings involving user
input.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
2022-06-08 08:48:53 -04:00
..
.gitignore
audit2why.c libselinux: simplify policy path logic to avoid uninitialized read 2022-06-08 08:48:40 -04:00
audit2why.map
avc_internal.c libselinux: replace strerror by %m 2021-08-10 14:21:28 -04:00
avc_internal.h libselinux: silence -Wextra-semi-stmt warning 2021-07-06 11:08:11 -04:00
avc_sidtab.c libselinux: sidtab_sid_stats(): unify parameter name 2021-05-18 10:06:22 +02:00
avc_sidtab.h
avc.c libselinux: replace strerror by %m 2021-08-10 14:21:28 -04:00
booleans.c
callbacks.c libselinux: make selinux_log() thread-safe 2021-11-23 10:03:16 +01:00
callbacks.h libselinux: preserve errno in selinux_log() 2022-05-16 10:28:35 -04:00
canonicalize_context.c libselinux: check for truncations 2022-06-08 08:48:53 -04:00
check_context.c
checkAccess.c libselinux: selinux_check_passwd_access_internal(): respect deny_unknown 2021-05-12 09:34:58 +02:00
checkreqprot.c
compute_av.c libselinux: check for truncations 2022-06-08 08:48:53 -04:00
compute_create.c libselinux: check for truncations 2022-06-08 08:48:53 -04:00
compute_member.c libselinux: check for truncations 2022-06-08 08:48:53 -04:00
compute_relabel.c libselinux: check for truncations 2022-06-08 08:48:53 -04:00
compute_user.c libselinux: check for truncations 2022-06-08 08:48:53 -04:00
context_internal.h
context.c libselinux: declare return value of context_str(3) const 2022-06-02 08:29:01 -04:00
deny_unknown.c
disable.c
enabled.c
exception.sh
fgetfilecon.c libselinux: emulate O_PATH support in fgetfilecon/fsetfilecon 2022-05-16 10:21:47 -04:00
file_path_suffixes.h
freecon.c
freeconary.c
fsetfilecon.c libselinux: emulate O_PATH support in fgetfilecon/fsetfilecon 2022-05-16 10:21:47 -04:00
get_context_list_internal.h
get_context_list.c libselinux: declare return value of context_str(3) const 2022-06-02 08:29:01 -04:00
get_default_type_internal.h
get_default_type.c
get_initial_context.c
getenforce.c
getfilecon.c
getpeercon.c
init.c
is_customizable_type.c libselinux: make is_context_customizable() thread-safe 2021-11-23 10:03:16 +01:00
label_backends_android.c libselinux: preserve errno in selinux_log() 2022-05-16 10:28:35 -04:00
label_db.c libselinux: label_db::db_init(): open file with CLOEXEC mode 2021-05-18 10:06:22 +02:00
label_file.c label_file: fix a data race 2021-11-23 10:03:14 +01:00
label_file.h libselinux: preserve errno in selinux_log() 2022-05-16 10:28:35 -04:00
label_internal.h libselinux: correctly hash specfiles larger than 4G 2022-04-20 14:14:39 -04:00
label_media.c libselinux: Close leaked FILEs 2022-03-25 10:20:21 -04:00
label_support.c libselinux: correctly hash specfiles larger than 4G 2022-04-20 14:14:39 -04:00
label_x.c libselinux: Close leaked FILEs 2022-03-25 10:20:21 -04:00
label.c libselinux: free memory on selabel_open(3) failure 2022-04-20 14:14:23 -04:00
lgetfilecon.c
libselinux.map selinux_restorecon: introduce SELINUX_RESTORECON_COUNT_ERRORS 2022-05-04 10:31:42 +02:00
libselinux.pc.in
load_policy.c libselinux: replace strerror by %m 2021-08-10 14:21:28 -04:00
lsetfilecon.c
Makefile libselinux: introduce strlcpy 2022-06-08 08:48:47 -04:00
mapping.c libselinux: Fix potential undefined shifts 2021-10-12 13:44:55 -04:00
mapping.h
matchmediacon.c libselinux: matchmediacon(): close file on error 2021-05-18 10:06:22 +02:00
matchpathcon.c libselinux: use valid address to silence glibc 2.34 warnings 2021-11-11 22:40:40 +01:00
policy.h
policyvers.c
procattr.c libselinux: do not return the cached prev_current value when using getpidcon() 2022-06-06 16:16:17 -04:00
query_user_context.c libselinux: declare return value of context_str(3) const 2022-06-02 08:29:01 -04:00
regex.c libselinux: regex: unify parameter names 2021-05-18 10:06:22 +02:00
regex.h libselinux: fix typo 2021-06-18 16:39:12 +02:00
reject_unknown.c
selinux_check_securetty_context.c
selinux_config.c libselinux: Strip spaces before values in config 2022-03-03 12:08:44 -05:00
selinux_internal.c libselinux: introduce strlcpy 2022-06-08 08:48:47 -04:00
selinux_internal.h libselinux: introduce strlcpy 2022-06-08 08:48:47 -04:00
selinux_netlink.h
selinux_restorecon.c libselinux: check for truncations 2022-06-08 08:48:53 -04:00
selinuxswig_python_exception.i selinux_restorecon: introduce selinux_restorecon_parallel(3) 2021-11-23 10:03:18 +01:00
selinuxswig_python.i selinux_restorecon: introduce selinux_restorecon_parallel(3) 2021-11-23 10:03:18 +01:00
selinuxswig_ruby.i
selinuxswig.i
sestatus.c libselinux: selinux_status_open: return 1 in fallback mode 2021-06-09 11:28:54 +02:00
setenforce.c
setexecfilecon.c libselinux: setexecfilecon(): drop dead assignment 2021-05-18 10:06:22 +02:00
setfilecon.c
setrans_client.c libselinux: check for truncations 2022-06-08 08:48:53 -04:00
setrans_internal.h
setup.py Update VERSIONs to 3.4 for release. 2022-05-18 16:51:03 +02:00
seusers.c
sha1.c libselinux: silence -Wextra-semi-stmt warning 2021-07-06 11:08:11 -04:00
sha1.h libselinux: Sha1Finalise(): do not discard const qualifier 2021-05-18 10:06:22 +02:00
stringrep.c libselinux: Fix potential undefined shifts 2021-10-12 13:44:55 -04:00
validatetrans.c