Fix delete_module decoding
* xlat/delete_module_flags.in: New file. * file.c (sys_delete_module): Move ... * bjm.c (sys_delete_module): ... to here. Decode 1st argument using printstr instead of printpath. * NEWS: Mention it.
This commit is contained in:
parent
64aa1b1e2d
commit
d04bb2bb80
3
NEWS
3
NEWS
@ -16,7 +16,8 @@ Noteworthy changes in release 4.9 (????-??-??)
|
||||
* Enhanced tracing of ARM personality processes on AArch64.
|
||||
* Enhanced 32/64bit personality detection on PowerPC.
|
||||
* Robustified decoding of select, pselect, and io_submit syscalls.
|
||||
* Enhanced decoding of fcntl, setns, and sync_file_range syscalls.
|
||||
* Enhanced decoding of delete_module, fcntl, setdomainname, sethostname,
|
||||
setns, and sync_file_range syscalls.
|
||||
* Enhanced decoding of signal bitmasks.
|
||||
* Enhanced decoding of file descriptors.
|
||||
* Enhanced siginfo_t decoding.
|
||||
|
12
bjm.c
12
bjm.c
@ -71,6 +71,7 @@ struct module_info
|
||||
|
||||
#include "xlat/qm_which.h"
|
||||
#include "xlat/modflags.h"
|
||||
#include "xlat/delete_module_flags.h"
|
||||
|
||||
int
|
||||
sys_query_module(struct tcb *tcp)
|
||||
@ -173,6 +174,17 @@ sys_create_module(struct tcb *tcp)
|
||||
return RVAL_HEX;
|
||||
}
|
||||
|
||||
int
|
||||
sys_delete_module(struct tcb *tcp)
|
||||
{
|
||||
if (entering(tcp)) {
|
||||
printstr(tcp, tcp->u_arg[0], -1);
|
||||
tprints(", ");
|
||||
printflags(delete_module_flags, tcp->u_arg[1], "O_???");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
sys_init_module(struct tcb *tcp)
|
||||
{
|
||||
|
6
file.c
6
file.c
@ -312,12 +312,6 @@ sys_open(struct tcb *tcp)
|
||||
return decode_open(tcp, 0);
|
||||
}
|
||||
|
||||
int sys_delete_module(struct tcb *tcp)
|
||||
{
|
||||
decode_open(tcp, 0);
|
||||
return RVAL_DECIMAL;
|
||||
}
|
||||
|
||||
int
|
||||
sys_openat(struct tcb *tcp)
|
||||
{
|
||||
|
2
xlat/delete_module_flags.in
Normal file
2
xlat/delete_module_flags.in
Normal file
@ -0,0 +1,2 @@
|
||||
O_NONBLOCK
|
||||
O_TRUNC
|
Loading…
x
Reference in New Issue
Block a user