libvirt/po
Pavel Hrdina 48423a0b5d vircgroup: introduce virCgroupV2DevicesAttachProg
This function loads the BPF prog with prepared map into kernel and
attaches it into guest cgroup.  It can be also used to replace existing
program in the cgroup if we need to resize BPF map to store more rules
for devices. The old program will be closed and removed from kernel.

There are two possible ways how to create BPF program:

    - One way is to write simple C-like code which can by compiled into
      BPF object file which can be loaded into kernel using elfutils.

    - The second way is to define macros which look like assembler
      instructions and can be used directly to create BPF program that
      can be directly loaded into kernel.

Since the program is not too complex we can use the second option.

If there is no program, all devices are allowed, if there is some
program it is executed and based on the exit status the access is
denied for 0 and allowed for 1.

Our program will follow these rules:

    - first it will try to look for the specific key using major and
      minor to see if there is any rule for that specific device

    - if there is no specific rule it will try to look for any rule that
      matches only major of the device

    - if there is no match with major it will try the same but with
      minor of the device

    - as the last attempt it will try to look for rule for all devices
      and if there is no match it will return 0 to deny that access

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2019-11-15 12:58:05 +01:00
..
af.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
am.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
anp.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ar.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
as.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ast.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
bal.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
be.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
bg.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
bn_IN.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
bn.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
bo.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
br.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
brx.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
bs.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ca.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
cs.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
cy.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
da.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
de_CH.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
de.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
el.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
en_GB.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
eo.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
es.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
et.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
eu.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
fa.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
fi.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
fil.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
fr.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
fur.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ga.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
gl.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
gu.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
he.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
hi.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
hr.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
hu.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ia.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
id.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ilo.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
is.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
it.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ja.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ka.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
kk.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
km.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
kn.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ko.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
kw_GB.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
kw.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
kw@kkcor.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
kw@uccor.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ky.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
lt.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
lv.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
mai.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
Makefile.am po: rewrite the way how we generate files 2019-11-08 17:07:57 +01:00
mk.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ml.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
mn.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
mr.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ms.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
my.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
nb.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
nds.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ne.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
nl.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
nn.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
nso.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
or.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
pa.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
pl.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
POTFILES.in vircgroup: introduce virCgroupV2DevicesAttachProg 2019-11-15 12:58:05 +01:00
pt_BR.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
pt.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
README.md po: README.md: add a note about which Zanata client is required 2019-11-08 17:07:57 +01:00
ro.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ru.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
si.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
sk.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
sl.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
sq.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
sr.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
sr@latin.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
sv.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ta.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
te.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
tg.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
th.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
tr.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
tw.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
uk.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
ur.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
vi.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
wba.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
yo.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
zanata.xml po: remove language list from zanata configuration 2018-04-19 10:36:06 +01:00
zh_CN.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
zh_HK.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
zh_TW.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00
zu.mini.po po: refresh translations from zanata 2019-10-18 13:57:53 +01:00

Libvirt Message Translation

Libvirt translatable messages are maintained using the GNU Gettext tools and file formats, in combination with the Zanata web service.

python-zanata-client is required in order to use make to pull/push translations from/to Zanata server.

Source repository

The libvirt GIT repository does NOT store the master "libvirt.pot" file, nor does it store full "po" files for translations. The master "libvirt.pot" file can be generated at any time using

make libvirt.pot

The translations are kept in minimized files that are the same file format as normal po files but with all redundant information stripped and messages re-ordered. The key differences between the ".mini.po" files in GIT and the full ".po" files are

  • msgids with no current translation are omitted
  • msgids are sorted in alphabetical order not source file order
  • msgids with a msgstr marked "fuzzy" are discarded
  • source file locations are omitted

The full po files can be created at any time using

make update-po

This merges the "libvirt.pot" with the "$LANG.mini.po" for each language, to create the "$LANG.po" files. These are included in the release archives created by "make dist".

When a full po file is updated, changes can be propagated back into the minimized po files using

make update-mini-po

Note, however, that this is generally not something that should be run by developers normally, as it is triggered by 'make pull-po' when refreshing content from Zanata.

Zanata web service

The translation of libvirt messages has been outsourced to the Fedora translation team using the Zanata web service:

https://fedora.zanata.org/project/view/libvirt

As such, changes to translations will generally NOT be accepted as patches directly to libvirt GIT. Any changes made to "$LANG.mini.po" files in libvirt GIT will be overwritten and lost the next time content is imported from Zanata.

The master "libvirt.pot" file is periodically pushed to Zanata to provide the translation team with content changes, using

make push-pot

New translated text is then periodically pulled down from Zanata to update the minimized po files, using

make pull-po

Sometimes the translators make mistakes, most commonly with handling printf format specifiers. The "pull-po" command re-generates the .gmo files to try to identify such mistakes. If a mistake is made, the broken msgstr should be deleted in the local "$LANG.mini.po" file, and the Zanata web interface used to reject the translation so that the broken msgstr isn't pulled down next time.

After pulling down new content the diff should be examined to look for any obvious mistakes that are not caught automatically. There have been bugs in Zanata tools which caused messges to go missing, so pay particular attention to diffs showing deletions where the msgid still exists in libvirt.pot