mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-26 23:32:53 +00:00
95d8143b35
This seems to work better on my system (aux-info on temp.c didn't do anything)
21 lines
384 B
Bash
Executable File
21 lines
384 B
Bash
Executable File
function except() {
|
|
case $1 in
|
|
selinux_file_context_cmp) # ignore
|
|
;;
|
|
*)
|
|
echo "
|
|
%exception $1 {
|
|
\$action
|
|
if (result < 0) {
|
|
PyErr_SetFromErrno(PyExc_OSError);
|
|
return NULL;
|
|
}
|
|
}
|
|
"
|
|
;;
|
|
esac
|
|
}
|
|
gcc -x c -c - -aux-info temp.aux < ../include/selinux/selinux.h
|
|
for i in `awk '/<stdin>.*extern int/ { print $6 }' temp.aux`; do except $i ; done
|
|
rm -f -- temp.aux -.o
|