Access denied to /dev/ttyUSB0

Jenny Murphy jenny.murphy at episensor.com
Wed Sep 7 14:00:03 UTC 2016


Hi,
 I solved the previous issue regarding the use of the RXTX java library and
the application is loading and running without errors.
However my java code isn't detecting the port, it should be able to see
/dev/ttyUSB0.

In the dmesg log I see the following errors :

[101043.875139] usb 1-2: new full-speed USB device number 7 using xhci_hcd
[101044.006418] usb 1-2: New USB device found, idVendor=10c4, idProduct=ea60
[101044.006441] usb 1-2: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[101044.006456] usb 1-2: Product: CP2102 USB to UART Bridge Controller
[101044.006470] usb 1-2: Manufacturer: Silicon Labs
[101044.006482] usb 1-2: SerialNumber: 0001
[101044.011589] cp210x 1-2:1.0: cp210x converter detected
[101044.012037] usb 1-2: cp210x converter now attached to ttyUSB0

[101098.191960] audit_printk_skb: 258 callbacks suppressed

[101098.191979] audit: type=1400 audit(1473254849.416:69078):
apparmor="DENIED" operation="open" profile="gateway.sideload_main_IdNRFcRcGPGe"
name="/dev/ttyUSB0" pid=4875 comm="java" requested_mask="wr"
denied_mask="wr" fsuid=0 ouid=0


Is there anyway to solve this. I am working on a Ubuntu 15.04 platform.

Thanks again.

-- 
*Jenny Murphy*
*EpiSensor, Georges Quay House, Georges Quay, Limerick, Ireland*
jenny.murphy at episensor.com <jenny.murphy at episensor.com>  t | +353 (0) 61
512 511  w | http://www.episensor.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20160907/5521bc72/attachment.html>


More information about the Snapcraft mailing list