[Bug 578527] Re: map serial port throws "chardev: opening backend "tty" failed"

Roman Yepishev roman.yepishev at canonical.com
Fri Dec 24 23:12:59 GMT 2010


As I can see on my installation the following happens:

requested_mask="r::" denied_mask="r::"

but

virt-aa-helper.c:
    865     for (i = 0; i < ctl->def->nserials; i++)
    866         if (ctl->def->serials[i] && ctl->def->serials[i]->data.file.path)
    867             if (vah_add_file(&buf,
    868                              ctl->def->serials[i]->data.file.path, "w") != 0)
    869                 goto clean;
    870 
    871     if (ctl->def->console && ctl->def->console->data.file.path)
    872         if (vah_add_file(&buf, ctl->def->console->data.file.path, "w") != 0)
    873             goto clean;

so apparmor profiles contain e.g. /dev/ttyS0 w, which allows writing to
the file, but not reading :-/

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.
https://bugs.launchpad.net/bugs/578527

Title:
  map serial port throws "chardev: opening backend "tty" failed"



More information about the Ubuntu-server-bugs mailing list