Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _UAPINFS_IDMAP_H |
| 8 | #define _UAPINFS_IDMAP_H |
| 9 | #include <linux/types.h> |
| 10 | #define IDMAP_NAMESZ 128 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #define IDMAP_TYPE_USER 0 |
| 12 | #define IDMAP_TYPE_GROUP 1 |
| 13 | #define IDMAP_CONV_IDTONAME 0 |
| 14 | #define IDMAP_CONV_NAMETOID 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | #define IDMAP_STATUS_INVALIDMSG 0x01 |
| 16 | #define IDMAP_STATUS_AGAIN 0x02 |
| 17 | #define IDMAP_STATUS_LOOKUPFAIL 0x04 |
| 18 | #define IDMAP_STATUS_SUCCESS 0x08 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | struct idmap_msg { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 20 | __u8 im_type; |
| 21 | __u8 im_conv; |
| 22 | char im_name[IDMAP_NAMESZ]; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 | __u32 im_id; |
| 24 | __u8 im_status; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 25 | }; |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 26 | #endif |