Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libnftnl for openSUSE:Factory checked in at 2024-11-01 21:00:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libnftnl (Old) and /work/SRC/openSUSE:Factory/.libnftnl.new.2020 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libnftnl" Fri Nov 1 21:00:54 2024 rev:29 rq:1219814 version:1.2.8 Changes: -------- --- /work/SRC/openSUSE:Factory/libnftnl/libnftnl.changes 2024-08-16 12:23:11.329882235 +0200 +++ /work/SRC/openSUSE:Factory/.libnftnl.new.2020/libnftnl.changes 2024-11-01 21:01:00.774009587 +0100 @@ -1,0 +2,7 @@ +Thu Oct 3 06:56:16 UTC 2024 - Jan Engelhardt <[email protected]> + +- Update to release 1.2.8 + * Fixes for incorrect validation of dynset netlink attributes + from the kernel + +------------------------------------------------------------------- Old: ---- libnftnl-1.2.7.tar.xz libnftnl-1.2.7.tar.xz.sig New: ---- libnftnl-1.2.8.tar.xz libnftnl-1.2.8.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libnftnl.spec ++++++ --- /var/tmp/diff_new_pack.6vDzT0/_old 2024-11-01 21:01:01.550041938 +0100 +++ /var/tmp/diff_new_pack.6vDzT0/_new 2024-11-01 21:01:01.550041938 +0100 @@ -1,7 +1,7 @@ # # spec file for package libnftnl # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2028 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ Name: libnftnl %define lname libnftnl11 -Version: 1.2.7 +Version: 1.2.8 Release: 0 Summary: Userspace library to access the nftables Netlink interface License: GPL-2.0-or-later @@ -68,8 +68,7 @@ %make_install rm -f "%buildroot/%_libdir"/*.la -%post -n %lname -p /sbin/ldconfig -%postun -n %lname -p /sbin/ldconfig +%ldconfig_scriptlets -n %lname %files -n %lname %_libdir/libnftnl.so.11* ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.6vDzT0/_old 2024-11-01 21:01:01.578043105 +0100 +++ /var/tmp/diff_new_pack.6vDzT0/_new 2024-11-01 21:01:01.582043271 +0100 @@ -1,5 +1,5 @@ -mtime: 1721140261 -commit: 38bb6101e4f28f5e3f2557fc887bcfdeb2f4fed7092328e90bec04f9e37f69b8 +mtime: 1727938780 +commit: 5049b912dceb41a4e649d4b4e0286fa5ce5429373cb352c507bda8c3fa2f3b0c url: https://src.opensuse.org/jengelh/libnftnl revision: master ++++++ build.specials.obscpio ++++++ diff: old/*: No such file or directory diff: new/*: No such file or directory ++++++ libnftnl-1.2.7.tar.xz -> libnftnl-1.2.8.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnftnl-1.2.7/configure new/libnftnl-1.2.8/configure --- old/libnftnl-1.2.7/configure 2024-07-15 14:00:00.502406083 +0200 +++ new/libnftnl-1.2.8/configure 2024-10-02 22:42:54.341225598 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for libnftnl 1.2.7. +# Generated by GNU Autoconf 2.71 for libnftnl 1.2.8. # # # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, @@ -618,8 +618,8 @@ # Identity of this package. PACKAGE_NAME='libnftnl' PACKAGE_TARNAME='libnftnl' -PACKAGE_VERSION='1.2.7' -PACKAGE_STRING='libnftnl 1.2.7' +PACKAGE_VERSION='1.2.8' +PACKAGE_STRING='libnftnl 1.2.8' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1360,7 +1360,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libnftnl 1.2.7 to adapt to many kinds of systems. +\`configure' configures libnftnl 1.2.8 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1431,7 +1431,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libnftnl 1.2.7:";; + short | recursive ) echo "Configuration of libnftnl 1.2.8:";; esac cat <<\_ACEOF @@ -1549,7 +1549,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libnftnl configure 1.2.7 +libnftnl configure 1.2.8 generated by GNU Autoconf 2.71 Copyright (C) 2021 Free Software Foundation, Inc. @@ -1767,7 +1767,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libnftnl $as_me 1.2.7, which was +It was created by libnftnl $as_me 1.2.8, which was generated by GNU Autoconf 2.71. Invocation command line was $ $0$ac_configure_args_raw @@ -4421,7 +4421,7 @@ # Define the identity of the package. PACKAGE='libnftnl' - VERSION='1.2.7' + VERSION='1.2.8' printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h @@ -14490,7 +14490,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libnftnl $as_me 1.2.7, which was +This file was extended by libnftnl $as_me 1.2.8, which was generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -14558,7 +14558,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ -libnftnl config.status 1.2.7 +libnftnl config.status 1.2.8 configured by $0, generated by GNU Autoconf 2.71, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnftnl-1.2.7/configure.ac new/libnftnl-1.2.8/configure.ac --- old/libnftnl-1.2.7/configure.ac 2024-07-15 13:47:43.026501104 +0200 +++ new/libnftnl-1.2.8/configure.ac 2024-10-02 22:41:35.395789648 +0200 @@ -1,6 +1,6 @@ dnl Process this file with autoconf to create configure. -AC_INIT([libnftnl], [1.2.7]) +AC_INIT([libnftnl], [1.2.8]) AC_CONFIG_AUX_DIR([build-aux]) AC_CANONICAL_HOST AC_CONFIG_MACRO_DIR([m4]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnftnl-1.2.7/src/expr/dynset.c new/libnftnl-1.2.8/src/expr/dynset.c --- old/libnftnl-1.2.7/src/expr/dynset.c 2024-06-20 13:10:39.436682676 +0200 +++ new/libnftnl-1.2.8/src/expr/dynset.c 2024-09-25 12:38:50.812893683 +0200 @@ -118,7 +118,7 @@ const struct nlattr **tb = data; int type = mnl_attr_get_type(attr); - if (mnl_attr_type_valid(attr, NFTA_SET_MAX) < 0) + if (mnl_attr_type_valid(attr, NFTA_DYNSET_MAX) < 0) return MNL_CB_OK; switch (type) { @@ -139,6 +139,7 @@ abi_breakage(); break; case NFTA_DYNSET_EXPR: + case NFTA_DYNSET_EXPRESSIONS: if (mnl_attr_validate(attr, MNL_TYPE_NESTED) < 0) abi_breakage(); break; @@ -225,7 +226,7 @@ nftnl_expr_dynset_parse(struct nftnl_expr *e, struct nlattr *attr) { struct nftnl_expr_dynset *dynset = nftnl_expr_data(e); - struct nlattr *tb[NFTA_SET_MAX+1] = {}; + struct nlattr *tb[NFTA_DYNSET_MAX+1] = {}; struct nftnl_expr *expr, *next; int ret = 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnftnl-1.2.7/src/object.c new/libnftnl-1.2.8/src/object.c --- old/libnftnl-1.2.7/src/object.c 2024-06-20 13:10:39.466683336 +0200 +++ new/libnftnl-1.2.8/src/object.c 2024-09-25 12:41:13.789572222 +0200 @@ -386,40 +386,22 @@ return 0; } -static int nftnl_obj_do_parse(struct nftnl_obj *obj, enum nftnl_parse_type type, - const void *data, struct nftnl_parse_err *err, - enum nftnl_parse_input input) -{ - struct nftnl_parse_err perr = {}; - int ret; - - switch (type) { - case NFTNL_PARSE_JSON: - case NFTNL_PARSE_XML: - default: - ret = -1; - errno = EOPNOTSUPP; - break; - } - - if (err != NULL) - *err = perr; - - return ret; -} - EXPORT_SYMBOL(nftnl_obj_parse); int nftnl_obj_parse(struct nftnl_obj *obj, enum nftnl_parse_type type, const char *data, struct nftnl_parse_err *err) { - return nftnl_obj_do_parse(obj, type, data, err, NFTNL_PARSE_BUFFER); + errno = EOPNOTSUPP; + + return -1; } EXPORT_SYMBOL(nftnl_obj_parse_file); int nftnl_obj_parse_file(struct nftnl_obj *obj, enum nftnl_parse_type type, FILE *fp, struct nftnl_parse_err *err) { - return nftnl_obj_do_parse(obj, type, fp, err, NFTNL_PARSE_FILE); + errno = EOPNOTSUPP; + + return -1; } static int nftnl_obj_snprintf_dflt(char *buf, size_t remain, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnftnl-1.2.7/src/rule.c new/libnftnl-1.2.8/src/rule.c --- old/libnftnl-1.2.7/src/rule.c 2024-06-20 13:10:39.466683336 +0200 +++ new/libnftnl-1.2.8/src/rule.c 2024-10-02 22:40:44.898871147 +0200 @@ -500,39 +500,22 @@ return 0; } -static int nftnl_rule_do_parse(struct nftnl_rule *r, enum nftnl_parse_type type, - const void *data, struct nftnl_parse_err *err, - enum nftnl_parse_input input) -{ - int ret; - struct nftnl_parse_err perr = {}; - - switch (type) { - case NFTNL_PARSE_JSON: - case NFTNL_PARSE_XML: - default: - ret = -1; - errno = EOPNOTSUPP; - break; - } - if (err != NULL) - *err = perr; - - return ret; -} - EXPORT_SYMBOL(nftnl_rule_parse); int nftnl_rule_parse(struct nftnl_rule *r, enum nftnl_parse_type type, const char *data, struct nftnl_parse_err *err) { - return nftnl_rule_do_parse(r, type, data, err, NFTNL_PARSE_BUFFER); + errno = EOPNOTSUPP; + + return -1; } EXPORT_SYMBOL(nftnl_rule_parse_file); int nftnl_rule_parse_file(struct nftnl_rule *r, enum nftnl_parse_type type, FILE *fp, struct nftnl_parse_err *err) { - return nftnl_rule_do_parse(r, type, fp, err, NFTNL_PARSE_FILE); + errno = EOPNOTSUPP; + + return -1; } static int nftnl_rule_snprintf_default(char *buf, size_t remain, @@ -590,23 +573,21 @@ sep = " "; } - ret = snprintf(buf + offset, remain, "\n"); - SNPRINTF_BUFFER_SIZE(ret, remain, offset); - list_for_each_entry(expr, &r->expr_list, head) { - ret = snprintf(buf + offset, remain, " [ %s ", expr->ops->name); + ret = snprintf(buf + offset, remain, + "\n [ %s ", expr->ops->name); SNPRINTF_BUFFER_SIZE(ret, remain, offset); ret = nftnl_expr_snprintf(buf + offset, remain, expr, type, flags); SNPRINTF_BUFFER_SIZE(ret, remain, offset); - ret = snprintf(buf + offset, remain, "]\n"); + ret = snprintf(buf + offset, remain, "]"); SNPRINTF_BUFFER_SIZE(ret, remain, offset); } if (r->user.len) { - ret = snprintf(buf + offset, remain, " userdata = { "); + ret = snprintf(buf + offset, remain, "\n userdata = { "); SNPRINTF_BUFFER_SIZE(ret, remain, offset); for (i = 0; i < r->user.len; i++) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnftnl-1.2.7/src/set.c new/libnftnl-1.2.8/src/set.c --- old/libnftnl-1.2.7/src/set.c 2024-06-20 13:10:39.466683336 +0200 +++ new/libnftnl-1.2.8/src/set.c 2024-09-25 12:40:41.210179282 +0200 @@ -753,40 +753,22 @@ return -1; } -static int nftnl_set_do_parse(struct nftnl_set *s, enum nftnl_parse_type type, - const void *data, struct nftnl_parse_err *err, - enum nftnl_parse_input input) -{ - int ret; - struct nftnl_parse_err perr = {}; - - switch (type) { - case NFTNL_PARSE_JSON: - case NFTNL_PARSE_XML: - default: - ret = -1; - errno = EOPNOTSUPP; - break; - } - - if (err != NULL) - *err = perr; - - return ret; -} - EXPORT_SYMBOL(nftnl_set_parse); int nftnl_set_parse(struct nftnl_set *s, enum nftnl_parse_type type, const char *data, struct nftnl_parse_err *err) { - return nftnl_set_do_parse(s, type, data, err, NFTNL_PARSE_BUFFER); + errno = EOPNOTSUPP; + + return -1; } EXPORT_SYMBOL(nftnl_set_parse_file); int nftnl_set_parse_file(struct nftnl_set *s, enum nftnl_parse_type type, FILE *fp, struct nftnl_parse_err *err) { - return nftnl_set_do_parse(s, type, fp, err, NFTNL_PARSE_FILE); + errno = EOPNOTSUPP; + + return -1; } static int nftnl_set_snprintf_default(char *buf, size_t remain, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libnftnl-1.2.7/src/table.c new/libnftnl-1.2.8/src/table.c --- old/libnftnl-1.2.7/src/table.c 2024-07-15 13:43:56.401658476 +0200 +++ new/libnftnl-1.2.8/src/table.c 2024-09-25 12:41:46.659039537 +0200 @@ -327,36 +327,22 @@ return 0; } -static int nftnl_table_do_parse(struct nftnl_table *t, enum nftnl_parse_type type, - const void *data, struct nftnl_parse_err *err, - enum nftnl_parse_input input) -{ - int ret; - - switch (type) { - case NFTNL_PARSE_JSON: - case NFTNL_PARSE_XML: - default: - ret = -1; - errno = EOPNOTSUPP; - break; - } - - return ret; -} - EXPORT_SYMBOL(nftnl_table_parse); int nftnl_table_parse(struct nftnl_table *t, enum nftnl_parse_type type, const char *data, struct nftnl_parse_err *err) { - return nftnl_table_do_parse(t, type, data, err, NFTNL_PARSE_BUFFER); + errno = EOPNOTSUPP; + + return -1; } EXPORT_SYMBOL(nftnl_table_parse_file); int nftnl_table_parse_file(struct nftnl_table *t, enum nftnl_parse_type type, FILE *fp, struct nftnl_parse_err *err) { - return nftnl_table_do_parse(t, type, fp, err, NFTNL_PARSE_FILE); + errno = EOPNOTSUPP; + + return -1; } static int nftnl_table_snprintf_default(char *buf, size_t size,
