| From 9e0a27017bf2c47ea5ceea5ca81d0ae28a6ea29f Sun Feb 21 18:38:01 2016 |
| From: Reilly Grant <reillyg@chromium.org> |
| Subject: [PATCH] BACKPORT: Use upstream USBDEVFS_DROP_PRIVILEGES |
| |
| --- |
| include/uapi/linux/usbdevice_fs.h | 4 +++ |
| 1 file changed, 3 insertions(+) |
| |
| diff --git a/include/uapi/linux/usbdevice_fs.h b/include/uapi/linux/usbdevice_fs.h |
| index 019ba1e0799a..427d934bf251 100644 |
| --- a/include/uapi/linux/usbdevice_fs.h |
| +++ b/include/uapi/linux/usbdevice_fs.h |
| @@ -134,5 +134,7 @@ struct usbdevfs_hub_portinfo { |
| #define USBDEVFS_CAP_NO_PACKET_SIZE_LIM 0x04 |
| #define USBDEVFS_CAP_BULK_SCATTER_GATHER 0x08 |
| #define USBDEVFS_CAP_REAP_AFTER_DISCONNECT 0x10 |
| +/* 0x20 is USBDEVFS_CAP_MMAP upstream */ |
| +#define USBDEVFS_CAP_DROP_PRIVILEGES 0x40 |
| |
| /* USBDEVFS_DISCONNECT_CLAIM flags & struct */ |
| @@ -187,5 +189,6 @@ struct usbdevfs_streams { |
| #define USBDEVFS_DISCONNECT_CLAIM _IOR('U', 27, struct usbdevfs_disconnect_claim) |
| #define USBDEVFS_ALLOC_STREAMS _IOR('U', 28, struct usbdevfs_streams) |
| #define USBDEVFS_FREE_STREAMS _IOR('U', 29, struct usbdevfs_streams) |
| +#define USBDEVFS_DROP_PRIVILEGES _IOW('U', 30, __u32) |
| |
| #endif /* _UAPI_LINUX_USBDEVICE_FS_H */ |
| -- |
| 2.13.5 |