Merge "Only allow system to write to existing input nodes." am: bab6ec555c

am: f5951632d0

Change-Id: If2548297bb3f18db4f0afe79f83d939b5b0f271e
This commit is contained in:
Michael Wright 2017-02-10 00:21:57 +00:00 committed by android-build-merger
commit c848a8de8e
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ subsystem adf
/dev/tty0 0660 root system /dev/tty0 0660 root system
/dev/graphics/* 0660 root graphics /dev/graphics/* 0660 root graphics
/dev/msm_hw3dm 0660 system graphics /dev/msm_hw3dm 0660 system graphics
/dev/input/* 0660 root input /dev/input/* 0640 system input
/dev/eac 0660 root audio /dev/eac 0660 root audio
/dev/cam 0660 root camera /dev/cam 0660 root camera
/dev/pmem 0660 system graphics /dev/pmem 0660 system graphics

View file

@ -321,7 +321,7 @@ static int open_device(const char *device, int print_flags)
char idstr[80]; char idstr[80];
struct input_id id; struct input_id id;
fd = open(device, O_RDWR); fd = open(device, O_RDONLY);
if(fd < 0) { if(fd < 0) {
if(print_flags & PRINT_DEVICE_ERRORS) if(print_flags & PRINT_DEVICE_ERRORS)
fprintf(stderr, "could not open %s, %s\n", device, strerror(errno)); fprintf(stderr, "could not open %s, %s\n", device, strerror(errno));