diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2013-11-13 20:19:29 -0500 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2013-11-19 14:07:21 -0500 |
commit | fd468c74bd4d6949736810a80d6ca05eb20fba84 (patch) | |
tree | c68b11620237ba704b740827ce952409b5666231 /net/socket.c | |
parent | 590d4693fb1c96ce441d11c6d1acb413a90b62e5 (diff) |
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>
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/socket.c b/net/socket.c index 7a766ab83ca5..1a548b70ef3a 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -3231,6 +3231,7 @@ static int compat_sock_ioctl_trans(struct file *file, struct socket *sock, | |||
3231 | case SIOCBONDSLAVEINFOQUERY: | 3231 | case SIOCBONDSLAVEINFOQUERY: |
3232 | case SIOCBONDINFOQUERY: | 3232 | case SIOCBONDINFOQUERY: |
3233 | case SIOCSHWTSTAMP: | 3233 | case SIOCSHWTSTAMP: |
3234 | case SIOCGHWTSTAMP: | ||
3234 | return compat_ifr_data_ioctl(net, cmd, argp); | 3235 | return compat_ifr_data_ioctl(net, cmd, argp); |
3235 | 3236 | ||
3236 | case FIOSETOWN: | 3237 | case FIOSETOWN: |