net_tstamp: Add SIOCGHWTSTAMP ioctl to match SIOCSHWTSTAMP
SIOCSHWTSTAMP returns the real configuration to the application using it, but there is currently no way for any other application to find out the configuration non-destructively. Add a new ioctl for this, making it unprivileged. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
This commit is contained in:
parent
590d4693fb
commit
fd468c74bd
5 changed files with 19 additions and 10 deletions
|
|
@ -3231,6 +3231,7 @@ static int compat_sock_ioctl_trans(struct file *file, struct socket *sock,
|
|||
case SIOCBONDSLAVEINFOQUERY:
|
||||
case SIOCBONDINFOQUERY:
|
||||
case SIOCSHWTSTAMP:
|
||||
case SIOCGHWTSTAMP:
|
||||
return compat_ifr_data_ioctl(net, cmd, argp);
|
||||
|
||||
case FIOSETOWN:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue