Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1155829 - Review Request: openvas-gsa - Greenbone Security Assistant (GSA) is GUI to the OpenVAS
Summary: Review Request: openvas-gsa - Greenbone Security Assistant (GSA) is GUI to th...
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Xavier Bachelot
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2014-10-22 23:58 UTC by Michal Ambroz
Modified: 2019-10-20 17:28 UTC (History)
5 users (show)

Fixed In Version: openvas-gsa-6.0.3-4.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-07-14 15:29:06 UTC
Type: Bug
xavier: fedora-review+
gwync: fedora-cvs+

Attachments (Terms of Use)

Description Michal Ambroz 2014-10-22 23:58:59 UTC
Please I would like to ask you for review of a new openvas package.


The Greenbone Security Assistant (GSA) is a lean web service offering a user
web interface for the Open Vulnerability Assessment System (OpenVAS).
The GSA uses XSL transformation style-sheets that converts OMP responses
from the OpenVAS infrastructure into presentable HTML.

Fedora Account System Username: rebus

Michal Ambroz

Comment 2 Xavier Bachelot 2014-11-06 09:50:00 UTC
No formal review yet, but a couple comments :
- Summary could be : "OpenVAS graphical user interface", it seems clearer and doesn't repeat the package name. 
- The sysvinit subpackage is only relevant for EL5 and EL6. It might be better to build either sysvinit or systemd depending on the target OS. Also I think the (Build)Requires on systemd would fail on EL5/EL6 and the %{_unitdir} will be undefined.
- There's a disabled patch (Patch2).
- Typo : "# Log direcotry" --> "# Log directory".
- %{_sysconfdir}/openvas/ is not owned.
- Nitpick : Add a / at the end of the following line in the %files section to make it even more obvious it is a directory : %dir %{_localstatedir}/log/openvas

Comment 3 Xavier Bachelot 2014-11-06 15:29:13 UTC
Did you try to build in mock ? The spec is missing some BuildRequires.
I added the following to have a build succeed (in an F21 chroot) :
BuildRequires:    libgcrypt-devel
BuildRequires:    libxslt-devel
BuildRequires:    libmicrohttpd-devel
BuildRequires:    doxygen
BuildRequires:    xmltoman
BuildRequires:    gpgme-devel

Comment 4 Xavier Bachelot 2014-11-06 15:36:35 UTC
Relevant rpm warnings :
openvas-gsa.i686: E: missing-call-to-setgroups-before-setuid /usr/sbin/gsad
openvas-gsa.i686: W: file-not-utf8 /usr/share/doc/openvas-gsa/CHANGES
openvas-gsa.i686: W: file-not-utf8 /usr/share/doc/openvas-gsa/ChangeLog
openvas-gsa.i686: W: non-conffile-in-etc /etc/logrotate.d/openvas-gsa

It seems the disabled patch2 deals with the first rpmlint warning, but as it's not applied nor included, I can't tell for sure.

Comment 5 Michal Ambroz 2014-11-07 02:43:21 UTC

Hello Xavier,
thanks for having a look.

- removed sysvinit support
- added setgroups patch as noted by the rpmlint
- fixed encoding problems for the changelogs
- marked logrotate script as config

>- Summary could be : "OpenVAS graphical user interface",
> it seems clearer and doesn't repeat the package name.
I already renamed from greenbone-security-assistant to openvas-gsa to keep the openvas naming convention. I agree shorter name would be nice, but I believe the Greenbone deserves its name at least in the summary. That way it makes it also easier to be searched by "yum search"

>- %{_sysconfdir}/openvas/ is not owned.
It is owned by openvas-libraries, which is in the requirements of this package. This is aligned with:
>It seems the disabled patch2 deals with the first rpmlint warning,
>but as it's not applied nor included, I can't tell for sure.
I was already trying, but didn't know the proper syntax required. Now it should be ok.

Comment 6 Michal Ambroz 2015-06-18 00:31:05 UTC

Bump to Openvas version 8 (available in rawhide)

Comment 7 Xavier Bachelot 2015-06-23 12:45:57 UTC
openvas-gsa.i686: W: spelling-error Summary(en_US) Greenbone -> Green bone, Green-bone, Greene
openvas-gsa.i686: W: incoherent-version-in-changelog 6.0.3-1 ['6.0.3-2.fc23', '6.0.3-2']
openvas-gsa.src: W: spelling-error Summary(en_US) Greenbone -> Green bone, Green-bone, Greene
openvas-gsa.src: W: strange-permission openvas-gsa.sysconfig 0600L
openvas-gsa.src: W: strange-permission openvas-gsa.logrotate 0600L
openvas-gsa.src: W: strange-permission openvas-gsa.service 0600L
openvas-gsa.src: W: strange-permission openvas-gsa-pki.patch 0600L
openvas-gsa.src:26: W: macro-in-comment %{name}
openvas-gsa.src:55: W: macro-in-comment %patch2

- Fix the release, either in the Release macro or in the changelog.
- Fix the perms on the files used as Source (644 I guess).
- Remove everything about Patch2.
- The spelling warnings can be ignored.

Comment 8 Xavier Bachelot 2015-06-23 13:08:39 UTC
- COPYING needs to be tagged %license. EL6 and 7 don't understand %license, but that can be worked around using %{!?_licensedir:%global license %%doc}.
- The timestamp is not preserved while converting CHANGES and Changelog files to utf8. You can use touch to change the .utf8 files timestamp before moving them.
- Add a / at the end of the %{_datadir}/openvas/gsa in %files to make it more obvious its a directory.

Comment 9 Michal Ambroz 2015-06-24 02:01:03 UTC
Hello Xavier,
thank you for review.
Here is the updated SPEC/SRPM:


Best regards
Michal Ambroz

Comment 10 Xavier Bachelot 2015-06-24 09:06:08 UTC
Package Review

[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed

===== MUST items =====

[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: Package does not contain any libtool archives (.la)
[x]: Rpath absent or only used for internal libs.

[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "GPL (v2 or later)", "Unknown or generated". 3 files have
     unknown license. Detailed output of licensecheck in /tmp/1155829
[?]: Package must own all directories that it creates.
     Note: Directories without known owners: /etc/openvas,
[?]: Package does not own files or directories owned by other packages.
     Note: Dirs in package are owned also by: /var/log/openvas(openvas-
     scanner, openvas-manager)
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[-]: Development files must be in a -devel package
[x]: Package uses nothing in %doc for runtime.
[x]: Package consistently uses macros (instead of hard-coded directory
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[x]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[x]: Package contains systemd file(s) if in need.
[ ]: Useful -debuginfo package or justification otherwise.
[x]: Package is not known to require an ExcludeArch tag.
[x]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 952320 bytes in 3 files.
[x]: Package complies to the Packaging Guidelines
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: If (and only if) the source package includes the text of the
     license(s) in its own file, then that file, containing the text of the
     license(s) for the package is included in %license.
[x]: Package requires other packages for directories it uses.
[x]: All build dependencies are listed in BuildRequires, except for any
     that are listed in the exceptions section of Packaging Guidelines.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: %config files are marked noreplace or the reason is justified.
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Dist tag is present.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Package use %makeinstall only when make install DESTDIR=... doesn't
[x]: Package is named using only allowed ASCII characters.
[x]: No %config files under /usr.
[x]: Package does not use a name that already exists.
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as
     provided in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
[x]: File names are valid UTF-8.
[x]: Packages must not store files under /srv, /opt or /usr/local

===== SHOULD items =====

[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[-]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
[x]: Final provides and requires are sane (see attachments).
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: Patches link to upstream bugs/comments/lists or are otherwise
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[?]: Package should compile and build into binary rpms on all supported
[-]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed
[x]: Sources can be downloaded from URI in Source: tag
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Uses parallel make %{?_smp_mflags} macro.
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

===== EXTRA items =====

[-]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.
     Note: Arch-ed rpms have a total of 4638720 bytes in /usr/share
[x]: Rpmlint is run on debuginfo package(s).
     Note: No rpmlint messages.
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Spec file according to URL is the same as in SRPM.

Checking: openvas-gsa-6.0.3-3.fc23.i686.rpm
openvas-gsa.i686: W: spelling-error Summary(en_US) Greenbone -> Green bone, Green-bone, Greene
openvas-gsa.src: W: spelling-error Summary(en_US) Greenbone -> Green bone, Green-bone, Greene
2 packages and 0 specfiles checked; 0 errors, 2 warnings.

Rpmlint (debuginfo)
Checking: openvas-gsa-debuginfo-6.0.3-3.fc23.i686.rpm
1 packages and 0 specfiles checked; 0 errors, 0 warnings.

Rpmlint (installed packages)
openvas-gsa.i686: W: spelling-error Summary(en_US) Greenbone -> Green bone, Green-bone, Greene
2 packages and 0 specfiles checked; 0 errors, 1 warnings.

openvas-gsa (rpmlib, GLIBC filtered):


Source checksums
---------------- :
  CHECKSUM(SHA256) this package     : 731f490186f917dcbacc52157e2906e66be69a20c6e69dc179d23b828413c0f3
  CHECKSUM(SHA256) upstream package : 731f490186f917dcbacc52157e2906e66be69a20c6e69dc179d23b828413c0f3

Generated by fedora-review 0.5.3 (bcf15e3) last change: 2015-05-04
Command line :/usr/bin/fedora-review -m fedora-rawhide-i386 -b 1155829
Buildroot used: fedora-rawhide-i386
Active plugins: Generic, Shell-api, C/C++
Disabled plugins: Java, Python, fonts, SugarActivity, Ocaml, Perl, Haskell, R, PHP, Ruby

Comment 11 Xavier Bachelot 2015-06-24 09:12:34 UTC
Hi Michal,

Almost everything looks clean now, thank you.
The only remaining potential issue I see is some directories ownership. iiuc, the scanner, manager and client can all be installed on different machines, so /etc/openvas and /usr/share/openvas should also be owned by the client. I ticked both the "Package must own all directories that it creates" and "Package does not own files or directories owned by other packages" for that purpose, but I guess only the former needs fixing while the later is fine. Let me know what you think. Once that is clarified, the package will be good to go.


Comment 12 Michal Ambroz 2015-06-24 11:18:40 UTC
Hello Xavier,
I believe we had this discussion already with some of the other packages from the suite.
Both /etc/openvas and /usr/share/openvas are already explicitly owned by the dependecy - openvas-libraries.

As you cannot have openvas-gsa (or cli or scanner or manager) without the base libraries package, I believe this condition is already met and there is not need to own these two directories in each of the suite packages.

However I do not have any strong feelings about that. Last time we have been checking we have found examples both ways in other packages. 

We have %dir %{_sysconfdir}/openvas/ in both scanner and manager and %dir %{_datadir}/openvas in manager, so for consistency I will add it to openvas-gsa  as well.

Best regards
Michal Ambroz

Comment 13 Xavier Bachelot 2015-06-24 11:53:05 UTC
Sorry for missing the earlier comment on the directories ownership. So if openvas-libraries own them already, that is fine. Anyway, consistency is also good, so it's fine both ways, do as you prefer.

openvas-gsa is thus APPROVED.

Do you plan on adding back support for sysvinit and thus EL6 ? The other pieces are available for EL6 already (for EL5 too, but I guess supporting EL5 at this point in time isn't really useful).

Thank you,

Comment 14 Michal Ambroz 2015-06-24 12:16:26 UTC
Yes I plan to add support for sysvinit/EL6 same as it is in the other packages,
if it is feasible to compile it there. I am not sure how well it will go with the dependencies. Primary EPEL target for now will be EPEL7.

Comment 15 Michal Ambroz 2015-06-24 12:59:12 UTC
New Package SCM Request
Package Name: openvas-gsa
Short Description: Greenbone Security Assistant (GSA) is GUI to the OpenVAS
Upstream URL:
Owners: rebus xavierb fab huzaifas cheese sgros
Branches: f21 f22 f23 el6 epel7

Comment 16 Gwyn Ciesla 2015-06-24 18:41:11 UTC
Git done (by process-git-requests).

Comment 17 Fedora Update System 2015-06-29 13:09:35 UTC
openvas-gsa-6.0.3-4.fc21 has been submitted as an update for Fedora 21.

Comment 18 Fedora Update System 2015-06-29 13:09:42 UTC
openvas-gsa-6.0.3-4.fc22 has been submitted as an update for Fedora 22.

Comment 19 Fedora Update System 2015-06-29 23:59:51 UTC
openvas-gsa-6.0.3-4.fc21 has been pushed to the Fedora 21 testing repository.

Comment 20 Fedora Update System 2015-07-14 15:29:06 UTC
openvas-gsa-6.0.3-4.fc21 has been pushed to the Fedora 21 stable repository.

Comment 21 Fedora Update System 2015-07-18 02:04:46 UTC
openvas-gsa-6.0.3-4.fc22 has been pushed to the Fedora 22 stable repository.

Note You need to log in before you can comment on or make changes to this bug.