[PATCH] elf: Implement DT_AUDIT, DT_DEPAUDIT support [BZ #24943]
Adhemerval Zanella
adhemerval.zanella@linaro.org
Wed Apr 1 21:33:37 GMT 2020
On 17/02/2020 13:02, Florian Weimer wrote:
> diff --git a/elf/rtld.c b/elf/rtld.c
> index 51dfaf966a..167da48def 100644
> --- a/elf/rtld.c
> +++ b/elf/rtld.c
> @@ -188,6 +188,15 @@ static struct audit_list
> struct audit_list *next;
> } *audit_list;
>
> +/* State flag for hte struct audit_list_iter iterator. */
> +enum audit_iter_list_state
> + {
> + audit_iter_list_in_string,
> + audit_iter_list_in_dt_audit,
> + audit_iter_list_in_dt_depaudit,
> + audit_iter_list_in_list,
> + };
> +
> /* Iterator for audit_list_string followed by audit_list. */
> struct audit_list_iter
> {
> @@ -198,6 +207,9 @@ struct audit_list_iter
> the first element. */
> struct audit_list *previous;
>
> + /* One of the enum audit_iter_list_state values. */
> + unsigned char state;
Why not use enum audit_iter_list_state as the type?
Rest looks ok, thanks.
More information about the Libc-alpha
mailing list