[grsec] Q. 'const'antify the members of a structure

J. R. Okajima hooanon05 at yahoo.co.jp
Fri May 28 07:45:29 EDT 2010


pageexec at freemail.hu:
> so in this case what you can do is similar to what PaX does in drivers/ata/libata-core.c:
>
> -       ops->inherits = NULL;
> +       ((struct ata_port_operations *)ops)->inherits = NULL;

It is a 'const struct foo_ops *ops' case
instead of 'struct foo_ops { void (* const f)() }' case, isn't it?


J. R. Okajima


More information about the grsecurity mailing list